From 8891e8165e5fb5ade1d981a8364cf7886578f1cb Mon Sep 17 00:00:00 2001 From: Ming Ming Date: Sun, 27 Jun 2021 22:32:12 +0800 Subject: [PATCH] Make sure all dates are UTC internally --- lib/entity/exif.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/entity/exif.dart b/lib/entity/exif.dart index 24f92c37..635aeb77 100644 --- a/lib/entity/exif.dart +++ b/lib/entity/exif.dart @@ -94,7 +94,7 @@ class Exif with EquatableMixin { /// 0x9003 DateTimeOriginal DateTime get dateTimeOriginal => data.containsKey("DateTimeOriginal") - ? dateTimeFormat.parse(data["DateTimeOriginal"]) + ? dateTimeFormat.parse(data["DateTimeOriginal"]).toUtc() : null; /// 0x829a ExposureTime