From 3465f376d39de3ffcff4c90d3954a28e57339cbc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Mon, 28 Sep 2009 14:46:42 +0200 Subject: [PATCH] Daten auch in den neuen TEMPLATE_ARRAYS fomatieren. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fix für Bug 1100 --- bin/mozilla/common.pl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bin/mozilla/common.pl b/bin/mozilla/common.pl index 6ace578f2..c8d7d6bb2 100644 --- a/bin/mozilla/common.pl +++ b/bin/mozilla/common.pl @@ -364,6 +364,13 @@ sub format_dates { $dateformat, $longformat); } } + if (ref($form->{TEMPLATE_ARRAYS}->{$idx}) eq "ARRAY") { + for (my $i = 0; $i < scalar(@{$form->{TEMPLATE_ARRAYS}->{$idx}}); $i++) { + $form->{TEMPLATE_ARRAYS}->{$idx}->[$i] = + $locale->reformat_date(\%myconfig, $form->{TEMPLATE_ARRAYS}->{$idx}->[$i], + $dateformat, $longformat); + } + } } $lxdebug->leave_sub(); -- 2.20.1