Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ulid().toMillis() Wrong in javascript environment. #2

Open
rayk opened this issue Jan 14, 2019 · 0 comments
Open

Ulid().toMillis() Wrong in javascript environment. #2

rayk opened this issue Jan 14, 2019 · 0 comments

Comments

@rayk
Copy link

rayk commented Jan 14, 2019

  • This problem has not been seen when the code is run on the VM.
  • compile with Dart2js, even with no optimizations and the .toMillis() start to play up.

The simplest example is probably;

actual correct epoch time was: 1547440090230

Ulid().toMills()
  • run this in the vm and one gets: 1547440090230
  • run when compiled to JS and get: 1251924761

The above is consistently repeated in different environments.

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

No branches or pull requests

1 participant