Bläddra i källkod

Fix timevalue and test

Neeraj Gupta 2 år sedan
förälder
incheckning
7e6992ac7d
2 ändrade filer med 2 tillägg och 2 borttagningar
  1. 1 1
      lib/core/constants.dart
  2. 1 1
      test/utils/date_time_util_test.dart

+ 1 - 1
lib/core/constants.dart

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

+ 1 - 1
test/utils/date_time_util_test.dart

@@ -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,