From aa8fc8ca2a7f9bc51e934054b088afc151ce4bb8 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 23 Jan 2013 10:26:17 +0100 Subject: [PATCH] DateTime-Formatierung: Jahreszahlen immer vierstellig ausgeben Machen die anderen Datumsformatfunktionen von kivitendo ebenso. --- SL/Locale.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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/; -- 2.20.1