- 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
- 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.