Hi,
So I was running po4a on Solaris and I got Perl warnings saying that
'%s' is not a valid number. I traced it to the timezone() function in
lib/Locale/Po4a/Po.pm which calls:
$diff = floor(strftime("%s",@l)/60 +0.5);
Unfortunately on Solaris strftime() does not support '%s' as the format
so it returns it as is. So I propose the attached patch which replaces
the call to strftime() with a call to Time::Local::timelocal() which
works on both Solaris and Linux and returns the same result.
I guess this should be tested on Windows too, but I'm not equipped for that.
Changelog:
* lib/Locale/Po4a/Po.pm
Francois Gouget <fgouget(a)codeweavers.com>
Fix timezone() so it works on Solaris (replace strftime("%s",@t)
with Time::Local::timelocal(@t)).
--
Francois Gouget
fgouget(a)codeweavers.com