Hi,
I have a problem with Pike 7.2 and localtime. It looks like it returns
different values on two machines:
On one running FreeBSD (other poeple have the same results with
Debian) from pike compiled from source:
$ date
Tue May 6 11:41:00 CEST 2003
$ date -u
Tue May 6 09:41:02 UTC 2003
$ pike
Pike v7.2 release 340 running Hilfe v2.0 (Incremental Pike Frontend)
> localtime(time());
Result: ([ /* 10 elements */
"hour":11,
"isdst":1,
"mday":6,
"min":33,
"mon":4,
"sec":54,
"timezone":-7200,
"wday":2,
"yday":125,
"year":103
])
On a Debian woody from the pike package:
$ date
Tue May 6 11:41:04 CEST 2003
$ date -u
Tue May 6 09:41:05 UTC 2003
$ pike
Pike v7.2 release 340 running Hilfe v2.0 (Incremental Pike Frontend)
> localtime(time());
Result: ([ /* 10 elements */
"hour":11,
"isdst":1,
"mday":6,
"min":34,
"mon":4,
"sec":1,
"timezone":-3600,
"wday":2,
"yday":125,
"year":103
])
The problem is in the timezone value (3600 and 7200).
Do you have any ideads ?
Thank you for your answers.
--
David Gourdelier