[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb:[5041] branches/1.3
- Subject: SF.net SVN: ledger-smb:[5041] branches/1.3
- From: ..hidden..
- Date: Wed, 25 Jul 2012 10:44:10 +0000
Revision: 5041
http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=5041&view=rev
Author: einhverfr
Date: 2012-07-25 10:44:10 +0000 (Wed, 25 Jul 2012)
Log Message:
-----------
Correcting improper date parsing, causing it to treat all numbers as yyyy-mm-dd, causing internal server errors
Modified Paths:
--------------
branches/1.3/Changelog
branches/1.3/LedgerSMB/Locale.pm
Modified: branches/1.3/Changelog
===================================================================
--- branches/1.3/Changelog 2012-07-25 10:11:30 UTC (rev 5040)
+++ branches/1.3/Changelog 2012-07-25 10:44:10 UTC (rev 5041)
@@ -15,6 +15,7 @@
* Adding action/id div to top of many screens (Chris T, h/t Erik H)
* File->get_for_template now gets most recent parts image (Chris T)
* Fixed error on generate purchase orders (Chris T, 3544857, h/t Nigel T)
+* Fixed internal server errors with date parsing (Chris T, 3546698)
Changelog for 1.3.20
* Fixes for es_AR translation, duplicate keys removed (Andres B)
Modified: branches/1.3/LedgerSMB/Locale.pm
===================================================================
--- branches/1.3/LedgerSMB/Locale.pm 2012-07-25 10:11:30 UTC (rev 5040)
+++ branches/1.3/LedgerSMB/Locale.pm 2012-07-25 10:44:10 UTC (rev 5041)
@@ -123,7 +123,7 @@
return $date;
}
if ( $date =~ /\D/ ) {
- if ($date =~ /\d{4}/){ # db date in
+ if ($date =~ /^\d{4}/){ # db date in
( $yy, $mm, $dd ) = split /\D/, $date;
}
elsif ( $myconfig->{dateformat} =~ /^yy/ ) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.