[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[5951] trunk/LedgerSMB/PGDate.pm

Revision: 5951
Author:   einhverfr
Date:     2013-08-19 07:33:03 +0000 (Mon, 19 Aug 2013)
Log Message:
Required change in order to create users from db management console:  added default date format since we don't have a user object.

Modified Paths:

Modified: trunk/LedgerSMB/PGDate.pm
--- trunk/LedgerSMB/PGDate.pm	2013-08-18 16:10:27 UTC (rev 5950)
+++ trunk/LedgerSMB/PGDate.pm	2013-08-19 07:33:03 UTC (rev 5951)
@@ -149,6 +149,7 @@
     $input = undef if $input eq '';
     return undef if !defined $input;
     my $format = $LedgerSMB::App_State::User->{dateformat};
+    $format ||= 'yyyy-mm-dd';
     my $dt =  _parse_string($self, $input, uc($format), $has_time);
     die $LedgerSMB::App_State::Locale->text("Invalid date/date: [_1]", $input)
         unless $dt;

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.

Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
Ledger-smb-commits mailing list