Closed Bug 493816 Opened 16 years ago Closed 16 years ago

Timestamps need to be saved as string prefs

Categories

(Firefox :: Sync, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED

People

(Reporter: hello, Assigned: Mardak)

References

Details

The prefs API can't save fractional numbers. I filed bug 493815 but in the meantime we should probably cast timestamps to strings and back. Also note this might affect bug 488172.
Flags: blocking-weave1.0+
Target Milestone: -- → 0.4
Component: Weave → General
Flags: blocking-weave1.0+
Product: Mozilla Labs → Weave
QA Contact: weave → general
Assignee: nobody → edilee
Status: NEW → ASSIGNED
Blocks: 498786
http://hg.mozilla.org/labs/weave/rev/8b0f32b1f8bc Internally store .lastSync as a string but keep exposing set/getters as float values. parseFloat takes both strings and numbers and gives a number. The server currently still gives "modified" values without 2 decimal precision, so I filed bug 498786.
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Component: General → Sync
QA Contact: general → sync
Resolution: --- → FIXED
Verified Fixed in Weave 0.4.0.
Status: RESOLVED → VERIFIED
Component: Firefox Sync: Backend → Sync
Product: Cloud Services → Firefox
You need to log in before you can comment on or make changes to this bug.