Dateimanagement: lokalisiertes Datum in Darstellung
authorMartin Helmling martin.helmling@octosoft.eu <martin.helmling@octosoft.eu>
Sat, 30 Sep 2017 11:59:08 +0000 (13:59 +0200)
committerMartin Helmling martin.helmling@octosoft.eu <martin.helmling@octosoft.eu>
Tue, 10 Oct 2017 13:52:00 +0000 (15:52 +0200)
SL/File/Backend/Filesystem.pm

index 9229283..c42707d 100644 (file)
@@ -98,7 +98,7 @@ sub get_mtime {
   die "No file found at $path. Expected: $params{dbfile}{file_name}, file.id: $params{dbfile}{id}" if !-f $path;
 
   my @st = stat($path);
-  my $dt = DateTime->from_epoch(epoch => $st[9])->clone();
+  my $dt = DateTime->from_epoch(epoch => $st[9], time_zone => $::locale->get_local_time_zone()->name, locale => $::lx_office_conf{system}->{language})->clone();
   return $dt;
 }