projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Inventur: Typo in Übersetzung
[kivitendo-erp.git]
/
SL
/
File
/
Backend
/
Filesystem.pm
diff --git
a/SL/File/Backend/Filesystem.pm
b/SL/File/Backend/Filesystem.pm
index
9229283
..
ec67d74
100644
(file)
--- a/
SL/File/Backend/Filesystem.pm
+++ b/
SL/File/Backend/Filesystem.pm
@@
-79,6
+79,9
@@
sub save {
print OUT $params{file_contents};
close(OUT);
}
print OUT $params{file_contents};
close(OUT);
}
+ if ($params{mtime}) {
+ utime($params{mtime}, $params{mtime}, $tofile);
+ }
return 1;
}
return 1;
}
@@
-98,7
+101,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);
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;
}
return $dt;
}