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

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



Revision: 5951
          http://sourceforge.net/p/ledger-smb/code/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:
--------------
    trunk/LedgerSMB/PGDate.pm

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. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits