I seem to be getting a different epoch date value in node.js for a thrift object than what is stored in the mongo database and returned by the service
Thrift definition file (thrift v0.9.0), I have
struct Profile {
...
4: i64 createDate,
5: i64 lastUpdateDate
Mongo record
"createdTimestamp" : NumberLong("1366334385361"),
"lastUpdatedTimestamp" : NumberLong("1366334385361")
Node reports
createDate: 534785233,
lastUpdateDate: 534785233
The generated node thrift client seems to have I64 referenced.
if (this.createDate !== null && this.createDate !== undefined) {
output.writeFieldBegin('createDate', Thrift.Type.I64, 14);
output.writeI64(this.createDate);
output.writeFieldEnd();
}
I appreciate any insight that comes along.
Thanks