[Po4a-commits] "po4a/lib/Locale/Po4a Po.pm,1.65,1.66"

Nicolas FRANCOIS nekral-guest at alioth.debian.org
Tue Oct 31 00:00:51 CET 2006


Update of /cvsroot/po4a/po4a/lib/Locale/Po4a
In directory alioth:/tmp/cvs-serv30970/lib/Locale/Po4a

Modified Files:
	Po.pm 
Log Message:
Do not call date, but use strftime.
This will help Windows' users.


Index: Po.pm
===================================================================
RCS file: /cvsroot/po4a/po4a/lib/Locale/Po4a/Po.pm,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -d -r1.65 -r1.66
--- Po.pm	7 Oct 2006 20:33:28 -0000	1.65
+++ Po.pm	30 Oct 2006 23:00:49 -0000	1.66
@@ -82,6 +82,7 @@
 use Carp qw(croak);
 use File::Path; # mkdir before write
 use File::Copy; # move
+use POSIX qw(strftime);
 
 use Encode;
 
@@ -118,7 +119,7 @@
 
 sub initialize {
     my ($self, $options) = (shift, shift);
-    my $date = `date +'%Y-%m-%d %k:%M%z'`;
+    my $date = strftime("%Y-%m-%d %H:%M%z", localtime);
     chomp $date;
 #    $options = ref($options) || $options;
 




More information about the Po4a-commits mailing list