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

Mike Hansen wolfpac444 at users.sourceforge.net
Wed Mar 26 04:46:22 CET 2003


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');





More information about the Koha-cvs mailing list