From: Sven Schöling Date: Mon, 28 Sep 2009 12:46:42 +0000 (+0200) Subject: Daten auch in den neuen TEMPLATE_ARRAYS fomatieren. X-Git-Tag: release-2.6.1beta1~275^2~1 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=3465f376d39de3ffcff4c90d3954a28e57339cbc;hp=-c;p=kivitendo-erp.git Daten auch in den neuen TEMPLATE_ARRAYS fomatieren. Fix für Bug 1100 --- 3465f376d39de3ffcff4c90d3954a28e57339cbc 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();