Open grundid opened 8 months ago
Hello @grundid, can you confirm on which device/os this is happening?
I've made the outputs on a MacOS and I have a crashlytics report from an iPhone user.
Reproducible using the plugin example app. Tested with the code sample below on android and iOS. Reproduced on both platforms.
Thanks for the report, it seems that there are some differences between how milliseconds from epoch is calculated on Dart and the native SDKs. I'm looking into it
Bug report
When saving a DateTime with Time of 00:00 and Date 1,1,1 the above error is thrown.
Steps to reproduce
Steps to reproduce the behavior:
Expected behavior
When I output the seconds value of the DateTime.utc(1) object I get -62135596800 (0001-01-01 00:00:00.000Z) When I output the seconds value of a DateTime(1) in my local timezone (CET) I get -62135600400 (0001-01-01 00:00:00.000) So the _kStartOfTime constant should be a little bit lower.