From b36b485608b9fc389cd0aeedbd0edc1b92c0c063 Mon Sep 17 00:00:00 2001 From: einhverfr Date: Wed, 6 Dec 2006 19:12:48 +0000 Subject: Fixing bug 1606269 git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@736 4979c152-3d1c-0410-bac9-87ea11338e46 --- LedgerSMB/Locale.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/LedgerSMB/Locale.pm b/LedgerSMB/Locale.pm index f9674d23..737affad 100644 --- a/LedgerSMB/Locale.pm +++ b/LedgerSMB/Locale.pm @@ -68,6 +68,10 @@ sub date { $spc =~ s/\w//g; $spc = substr($spc, 0, 1); + if (!$longformat && $date =~ /^\d{4}\D/){ # reparsing date at this point + # causes problems! + return $date; + } if ($date =~ /\D/) { if ($myconfig->{dateformat} =~ /^yy/) { -- cgit v1.2.3