Skip to content

fix: pass Unix seconds (not milliseconds) to commit timestamp#76

Open
sindrest wants to merge 1 commit into
loro-dev:mainfrom
sindrest:sindrest/ts
Open

fix: pass Unix seconds (not milliseconds) to commit timestamp#76
sindrest wants to merge 1 commit into
loro-dev:mainfrom
sindrest:sindrest/ts

Conversation

@sindrest

Copy link
Copy Markdown

Loro expects Unix seconds, but Date.now() returns milliseconds.
On loro-crdt@1.10.2 (the current locked version) the explicit timestamp is ignored, but on >=1.10.6 it's respected. This is causing sync-plugin commit millisecond timestamps, which leads to errors downstream

    Loro expects Unix seconds, but Date.now() returns milliseconds.
    On loro-crdt@1.10.2 () the explicit timestamp is
    ignored, but on >=1.10.6 it's respected. This is causing sync-plugin
    commit millisecond timestamps, which leads to errors downstream
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant