Timezone saving problem
[1/2] from: jcesar::tre-se::gov::br at: 18-Feb-2005 7:29
Hi,
I=B4m having a problem with timezone when setting file modification time.
My timezone is -3 GMT and every time a try to set a modification time
based on remote file the Rebol changes to 3 hours less the remote.
Any idea how to change this behavior?
Thanks.
--
J=FAlio C=E9sar Santana
[2/2] from: antonr::lexicon::net at: 20-Feb-2005 1:24
You mean, the remote file's modification date does not
have a timezone, so Rebol assumes a timezone of zero,
as in this example:
>> set-modes %afile [modification-date: 20-Feb-2005/1:25:00]
>> get-modes %afile 'modification-date
== 20-Feb-2005/12:25+11:00
You can see the time was adjusted +11 hours to arrive
in the future here in Australia. :)
I think the solution is to add the correct timezone to
the remote time before setting it to your local file.
(Finding out the correct timezone might be a problem
by itself... What timezone is the server in?)
Anton.