Fix timevalue and test

This commit is contained in:
Neeraj Gupta 2022-11-12 16:57:36 +05:30
parent 32e299c82b
commit 7e6992ac7d
No known key found for this signature in database
GPG key ID: 3C5A1684DC1729E1
2 changed files with 2 additions and 2 deletions

View file

@ -11,7 +11,7 @@ const String sentryTunnel = "https://sentry-reporter.ente.io";
const String roadmapURL = "https://roadmap.ente.io";
const int microSecondsInDay = 86400000000;
const int android11SDKINT = 30;
const int jan011981Time = 347135400000000;
const int jan011981Time = 347155200000000;
const int galleryLoadStartTime = -8000000000000000; // Wednesday, March 6, 1748
const int galleryLoadEndTime = 9223372036854775807; // 2^63 -1

View file

@ -31,7 +31,7 @@ void main() {
});
test("verify constants", () {
final date = DateTime.fromMicrosecondsSinceEpoch(jan011981Time);
final date = DateTime.fromMicrosecondsSinceEpoch(jan011981Time).toUtc();
expect(
date.year == 1981 && date.month == 1,
true,