Skip to content

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

@rayk

Description

@rayk
  • 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions