![]() |
|
The stupid question is the question not asked | |
PerlMonks |
Re^2: ENV{TZ} and localtime? (inconsistent time in child script)by blahblahblah (Priest) |
on Sep 07, 2007 at 00:30 UTC ( #637560=note: print w/replies, xml ) | Need Help?? |
Thanks, I think I found an solution in the docs you referenced for _tzset:
So I tried "EST5EDT" instead of -0400, and that gives the right result. I'm still not sure why it behaves differently when called via system() though. update:used code tags so brackets in syntax aren't hidden.
In Section
Seekers of Perl Wisdom
|
|