summaryrefslogtreecommitdiff
path: root/LedgerSMB
diff options
context:
space:
mode:
Diffstat (limited to 'LedgerSMB')
-rw-r--r--LedgerSMB/Locale.pm4
1 files changed, 4 insertions, 0 deletions
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/) {