A cursory check of the archives would have dug up this exchange: http://sources.redhat.com/ml/cygwin/2004-02/msg00582.html
Sooo - either try the latest snapshot of the cygwin1.dll, or wait for release 1.5.8. And *when* will that be you might ask?? The definitive answer: http://sources.redhat.com/ml/cygwin/2004-02/msg00716.html And if that seems a little vague and non-commital (much less helpful), given that it's only February, you can ponder this: http://sources.redhat.com/ml/cygwin/2004-02/msg00714.html Brian Kelly -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Charles Plager Sent: Saturday, February 28, 2004 7:35 PM To: Cygwin Mailing list Subject: localtime() acting like gmtime() in Perl Hello, localtime() seems to be returning GMT instead of the local time. I've tested the same script on three different machines. (Unfortunately, on linux and sgi, they are using perl 5.6.1 whereas on cygwin, I'm using 5.8.2, but I don't *think* it's a perl bug). If I just use 'date', I get the correct local time. Any ideas? TIA, Charles ---- script ----- #!/usr/bin/perl my $localt = localtime(); my $gmt = gmtime(); system "date"; print "local $localt\ngmt $gmt\n"; ----- output on cygwin ---- [EMAIL PROTECTED]> testDT.pl Sat Feb 28 18:31:18 CST 2004 local Sun Feb 29 00:31:17 2004 gmt Sun Feb 29 00:31:17 2004 ------ output on linux ----- [EMAIL PROTECTED]> test.pl Sat Feb 28 18:27:51 CST 2004 local Sat Feb 28 18:27:51 2004 gmt Sun Feb 29 00:27:51 2004 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/