JS time is 1000x smaller than expected
Author: pvhCreated Aug 16, 2024Updated Aug 28, 2026
Labelsjavascript
I accept @ept's argument that for size reasons we should truncate times to ~ms accuracy but we should probably consistently process and return those times in JS' native format.
Right now, in the JS library if I look at a DecodedChange's .time, I get a time that does not correctly parse to new Date(change.time), and if I manually provide a time as change metadata, we store it at 1000x the documented resolution!
Source: automerge/automerge