This appears to be something that has already been hit under Solaris,
and Perl has an ifdef for it, but it doesn't appear to be compiled
with that ifdef under MacOS X (and I don't know off hand if the two
situations are identical).
struct tm has additional timezone information, and it's not being
intialized when you call:
perl -MPOSIX -e "print strftime('%a, %d %b %Y %H:%M:%S %z',
26,21,21,30,0,103,4,29,0)"
Thus resulting in rather random results like: Thu, 30 Jan 2003 21:21:26 +1932
Where it ought to be -0500
I suspect the problem will go away if STRUCT_TM_HASZONE is defined
when building Perl. That implements a hack whereby the tm structure
is set to the results of localtime() first, and then filled in with
the values that are passed.
--
Kee Hinckley
http://www.puremessaging.com/ Junk-Free Email Filtering
http://commons.somewhere.com/buzz/ Writings on Technology and Society
I'm not sure which upsets me more: that people are so unwilling to accept
responsibility for their own actions, or that they are so eager to regulate
everyone else's.
