projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
locales.pl: mehrere t8() in einer Zeile richtig behandeln
[kivitendo-erp.git]
/
SL
/
Locale.pm
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';
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/;
$format =~ s/mm/\%m/;
$format =~ s/dd/\%d/;