in reply to perl 5.8 shows wrong timestamp on cygwin
I think the problem is that under cygwin localtime returns GMTime.
There's a solution here:
http://www.mail-archive.com/cygwin@cygwin.com/msg37313.html
which says "use POSIX 'tzset'; tzset()" before calling localtime.
I haven't tested it. So use at your own risk.
-XorL
Update: just fixed a typo.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: perl 5.8 shows wrong timestamp on cygwin
by tos (Deacon) on Apr 21, 2004 at 18:25 UTC |
In Section
Seekers of Perl Wisdom