[REBOL] Re: Amazon S3 Tools linux problem.
From: compkarori:gm:ail at: 26-Sep-2010 13:31
Hi Carl
Try this
In the S3 tools, change now-gmt to
now-gmt: func [ t ][ t: t - t/zone t/zone: 0:00 t ]
run ladislav's nist tools
do http://www.fm.tul.cz/~ladislav/rebol/nistclock.r
and then change all occurrences of now-gmt to now-gmt nist-corrected-time
On Sun, Sep 26, 2010 at 12:55 PM, Graham Chiu <compkarori-gmail.com> wrote:
> Carl
>
> If it is any consolation to you, R3 shows the timezone as +13 even as R2
> shows it as +12 :(
>
> I always set the time to NIST time in my applications before I do anything
> else.
>
> On Sun, Sep 26, 2010 at 1:34 PM, Carl Read <carl-cybercraft.co.nz> wrote:
>
>>
>> Followup to this...
>>
>>
>> http://developer.amazonwebservices.com/connect/message.jspa?messageID=119866
>>
>> Seems the best approach would be to get the time from the Amazon server,
>> thus bypassing any local time issues.
>>
>> -- Carl Read.
>>
>> PS. And yes, I meant REBOL below, not REBO, and the last sentence
>> should've read "I couldn't /find/ one in the 'Viewtop'."... (Well what'ya
>> expect on the day daylight saving cuts in!)
>>
>>
>> On Sunday, 26-September-2010 at 13:10:55 Carl Read wrote,
>>
>> >Hi yet again Graham...
>> >
>> >Today uploading to Amazon S3 stopped working for me on Windows XP! And
>> after a
>> >while it dawned on me why - daylight saving started here today. Sigh...
>> >
>> >So, if I turn off daylight saving in Windows, (setting Windows' clock
>> back an
>> >hour), I can upload. But I can't if I then manually set the clock forward
>> an
>> >hour. (And no matter what settings I choose, REBOL's time always matches
>> >Windows' time.)
>> >
>> >I noticed Windows says it's still only 12 hours ahead when daylight
>> saving is
>> >ticked as on (as does REBO), so I'm picking that's the source of the
>> problem.
>> >REBOL grabs the time-zone from Windows, when what it needs is 13 hours.
>> Unless
>> >there's a setting for the time-zone in REBOL? I couldn't one in the
>> >'Viewtop'.
>> >
>> >-- Carl Read.
>> >
>> >
>> >On Wednesday, 22-September-2010 at 21:50:42 Graham Chiu wrote,
>> >
>> >>Hi Carl
>> >>
>> >>Yes, about that url-encode, I just added one now :)
>> >>
>> >>The problem with the prot-http is that you do lose the headers returned
>> >>unless you open the url instead. Hence my need to modify the success
>> >>function.
>> >>
>> >>The headers should have given the error information from Amazon that you
>> >>were using the incorrect time. So, not sure why that didn't work ..
>> >>
>> >>On Wed, Sep 22, 2010 at 9:29 PM, Carl Read <carl-cybercraft.co.nz>
>> wrote:
>> >>
>> >>>
>> >>> Hi Graham,
>> >>>
>> >>> Yes - elsewhere! I hadn't set the timezone on Linux, (it's a newish
>> >>> install), and that was the problem. I noticed the time was four hours
>> out
>> >>in
>> >>> the authorization block, which put me on the right track.
>> >>>
>> >>> BTW, I've just remembered the url-encode function wasn't included with
>> >your
>> >>> script - I had to find it elsewhere. It's not in View 2.7.7, but
>> perhaps
>> >>> it's in other REBOLs?
>> >>>
>> >>> Anyway, many thanks for your patience! And the script - useful.
>> >>>
>> >>> -- Carl Read.
>> >
>> >--
>> >To unsubscribe from the list, just send an email to
>> >lists at rebol.com with unsubscribe as the subject.
>> >
>> >
>>
>> --
>> To unsubscribe from the list, just send an email to
>> lists at rebol.com with unsubscribe as the subject.
>>
>>
>
> --
> Graham Chiu
> http://www.compkarori.co.nz:8090/
> Synapse - the use from anywhere EMR.
>
--
Graham Chiu
http://www.compkarori.co.nz:8090/
Synapse - the use from anywhere EMR.