Fix timevalue and test
This commit is contained in:
parent
32e299c82b
commit
7e6992ac7d
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue