Closed Bug 470581 Opened 16 years ago Closed 16 years ago

Server returns modified timestamps as strings

Categories

(Cloud Services :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: hello, Unassigned)

References

Details

Here's a sample record from the server (formatting added): [{"id":"cd6db6bd-add8-cf40-a6bf-10d40da2c63d", "modified":"1229735510074", "payload":"{\"encryption\":\"https:\/\/63.245.209.84\/weave\/0.3\/thunder2\/crypto\/history\",\"ciphertext\":\"QtZGmRT1EZSBGg2oFL8fHJIsQX5kht3xoeFH2ZLnbbYCnEbg1mlrzAatol0IBcSVIN6urxHtiRPgurGZ8xuJzE++2yujaDBwzKuEKaUCxUPwdtEb962CPxWkcoEHF2OHEIlORDvUKoF1B0iXZza0FX8hLQ14Fb78NBZEfSeHJ59cqINjo97bVRy0xzjN497d\"}" }] Note that modified is a string instead of a number. This is causing comparisons on the client to fail.
Weird. At some point we must have decided to go the other way, as I had explicit string casts in the code. It also comes out of the database as a string, so I need an explicit float cast there.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Component: Weave → General
Product: Mozilla Labs → Weave
QA Contact: weave → general
You need to log in before you can comment on or make changes to this bug.