summaryrefslogtreecommitdiff
path: root/src/metadata/MetadataDateTime.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2024-11-11 12:27:53 +0100
committerJörg Frings-Fürst <debian@jff.email>2024-11-11 12:27:53 +0100
commit5b7b3b1dfd5ce7c275881098310667b09562ad27 (patch)
treed2760df372d76da84d901cfc3a20514d5dc73bdf /src/metadata/MetadataDateTime.vala
parentf6062696f6bbd00d4eaa8a6e994dabfefc455f31 (diff)
New upstream version 0.32.10upstream/0.32.10upstream
Diffstat (limited to 'src/metadata/MetadataDateTime.vala')
-rw-r--r--src/metadata/MetadataDateTime.vala3
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;
}