Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: Timezone saving problem

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.