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

DateTimeAdapter drops microseconds #534

Closed
kinex opened this issue Jan 7, 2021 · 1 comment
Closed

DateTimeAdapter drops microseconds #534

kinex opened this issue Jan 7, 2021 · 1 comment
Assignees
Labels
problem An unconfirmed bug.

Comments

@kinex
Copy link

kinex commented Jan 7, 2021

DateTimeAdapter uses millisecondsSinceEpoch instead of microsecondsSinceEpoch. So if you try to save to hive e.g. 2021-01-08 15:43:46.900361, it actually saves 2021-01-08 15:43:46.900. One problem this is causing is that you cannot use DateTime.isAtSameMomentAs to compare a date saved to hive to the original date (it could be e.g. File.lastModified).

Version

  • Hive version: 1.4.4+1
@kinex kinex added the problem An unconfirmed bug. label Jan 7, 2021
@kinex
Copy link
Author

kinex commented Jan 20, 2021

Maybe you can forget this, see dart-lang/sdk#44717

@kinex kinex closed this as completed Jan 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
problem An unconfirmed bug.
Projects
None yet
Development

No branches or pull requests

2 participants