diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2024-11-11 12:28:09 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2024-11-11 12:28:09 +0100 |
commit | cb001bb8056869f98e9a62248bdd509a69d08faf (patch) | |
tree | ec5e83ac39e4e5cec0ab9494da2d0edaafe72d89 /src/metadata/MetadataDateTime.vala | |
parent | 1bbf886bafc680c56ddd5e27ddd803b4e03685df (diff) | |
parent | 5b7b3b1dfd5ce7c275881098310667b09562ad27 (diff) |
Update upstream source from tag 'upstream/0.32.10'
Update to upstream version '0.32.10'
with Debian dir 4a4ccaeec66d543745486a1cf408bbaa58c6e02f
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; } |