X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FLocale.pm;h=5503c1b9595b5c93c9ea4e96ebd5f8da7d840bc3;hb=67ca0f93194b1d0c8f0a3d090c6c1f604670837d;hp=ccf494343e9fbf843ced5e3acd17738ed6af8fa8;hpb=c497b0352f95a55d204101b70ac771b2dc21ddee;p=kivitendo-erp.git diff --git a/SL/Locale.pm b/SL/Locale.pm index ccf494343..5503c1b95 100644 --- 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/;