koha-cvs
[Top][All Lists]
Advanced

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

[Koha-cvs] CVS: koha/C4 Date.pm,1.1,1.2


From: Mike Hansen
Subject: [Koha-cvs] CVS: koha/C4 Date.pm,1.1,1.2
Date: Tue, 25 Mar 2003 19:46:22 -0800

Update of /cvsroot/koha/koha/C4
In directory sc8-pr-cvs1:/tmp/cvs-serv2414/koha/C4

Modified Files:
        Date.pm 
Log Message:
Fixed problems with non-US date such as 28/10/1983.


Index: Date.pm
===================================================================
RCS file: /cvsroot/koha/koha/C4/Date.pm,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** Date.pm     26 Mar 2003 02:48:59 -0000      1.1
--- Date.pm     26 Mar 2003 03:46:20 -0000      1.2
***************
*** 69,72 ****
--- 69,73 ----
        if ( $dateformat eq "us" )
        {
+               Date_Init("DateFormat=US");
                $olddate = ParseDate($olddate);
                $newdate = UnixDate($olddate,'%m/%d/%Y');
***************
*** 74,77 ****
--- 75,79 ----
        elsif ( $dateformat eq "metric" )
        {
+               Date_Init("DateFormat=metric");
                $olddate = ParseDate($olddate);
                $newdate = UnixDate($olddate,'%d/%m/%Y');
***************
*** 79,82 ****
--- 81,85 ----
        elsif ( $dateformat eq "iso" )
        {
+               Date_Init("DateFormat=iso");
                $olddate = ParseDate($olddate);
                $newdate = UnixDate($olddate,'%Y-%m-%d');




reply via email to

[Prev in Thread] Current Thread [Next in Thread]