diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2024-11-11 12:28:23 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2024-11-11 12:28:23 +0100 |
commit | 483b2e960f24c370d9e0260ab4ba8b3453408590 (patch) | |
tree | ec5e83ac39e4e5cec0ab9494da2d0edaafe72d89 /src/metadata/MetadataDateTime.vala | |
parent | 1bbf886bafc680c56ddd5e27ddd803b4e03685df (diff) | |
parent | cb001bb8056869f98e9a62248bdd509a69d08faf (diff) |
Merge branch 'feature/upstrem' into develop
Diffstat (limited to 'src/metadata/MetadataDateTime.vala')
-rw-r--r-- | src/metadata/MetadataDateTime.vala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/metadata/MetadataDateTime.vala b/src/metadata/MetadataDateTime.vala index 9dae99b..648d44d 100644 --- a/src/metadata/MetadataDateTime.vala +++ b/src/metadata/MetadataDateTime.vala @@ -6,6 +6,7 @@ public errordomain MetadataDateTimeError { public class MetadataDateTime { private DateTime timestamp; + private static TimeZone local = new TimeZone.local(); public MetadataDateTime(DateTime timestamp) { this.timestamp = timestamp; @@ -63,7 +64,7 @@ public class MetadataDateTime { if (tm.year <= 1900 || tm.month <= 0 || tm.day < 0 || tm.hour < 0 || tm.minute < 0 || tm.second < 0) return false; - timestamp = new DateTime.local(tm.year, tm.month, tm.day, tm.hour, tm.minute, tm.second); + timestamp = new DateTime(local, tm.year, tm.month, tm.day, tm.hour, tm.minute, tm.second); return true; } |