projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0845c4b
)
DateTime-Formatierung: Jahreszahlen immer vierstellig ausgeben
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Wed, 23 Jan 2013 09:26:17 +0000
(10:26 +0100)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Wed, 23 Jan 2013 09:29:46 +0000
(10:29 +0100)
Machen die anderen Datumsformatfunktionen von kivitendo ebenso.
SL/Locale.pm
patch
|
blob
|
history
diff --git
a/SL/Locale.pm
b/SL/Locale.pm
index
ccf4943
..
5503c1b
100644
(file)
--- a/
SL/Locale.pm
+++ b/
SL/Locale.pm
@@
-403,8
+403,7
@@
sub format_date_object {
my ($self, $datetime, %params) = @_;
my $format = $::myconfig{dateformat} || 'yyyy-mm-dd';
- $format =~ s/yyyy/\%Y/;
- $format =~ s/yy/\%y/;
+ $format =~ s/yy(?:yy)?/\%Y/;
$format =~ s/mm/\%m/;
$format =~ s/dd/\%d/;