Using seconds in Revolution
Sarah Reichelt
sarahr at genesearch.com.au
Mon Apr 19 23:36:19 EDT 2004
>>> While I haven't encountered the short & long day problem, there is a
>>> severe problem with the convert command if your system uses
>>> daylight-saving. Basically, EVERY call to the convert command, adds
>>> an hour to the time converted, if daylight saving is on. There are
>>> numerous reports in bugzilla about various date conversion problems
>>> (62, 816, 1124, 1162) and I am trying to get the folks at RunRev to
>>> see this as a critical problem.
>>
>> I just looked at the above bugs. I get the same results as were
>> reported with #62; that is, I get a 2 instead of a 0 when converting
>> a plain date to date items when no time is specified.
>>
>> The others work okay for me though, and I don't see any extra hour
>> added to the conversion results. I'm in daylight time right now in
>> the U.S. Could it be related to time zones outside the U.S.?
>
> I guess - I'll have to do more tests. Perhaps setting my location to
> Edinburgh and then proving a problem might get me somewhere :-)
>
I've done more testing of this problem. If anyone is interested, check
out bug 1162
<http://www.runrev.com/revolution/developers/bugdatabase/show_bug.cgi?
id=1162> which includes a demo stack to show what I'm talking about.
I have found something you can use as an indicator of the problem: take
the date you are using (no time) and convert it to dateItems. If the
hours item comes back as 2 then convert will work. If the hours item
comes back as a 3, EVERY use of the convert command will add 1 to the
hours.
The problems seems to be confined to OS X and to positive time zones
(i.e. those East of Greenwich) with daylight savings. The computer's
clock doesn't need to be on daylight-savings for the problem to occur -
it will appear for any date which is inside the daylight savings
period.
However, I think we are making some progress in getting this identified
as a serious bug, as Bugzilla now has it Assigned and with a target
milestone of 2.2!
Cheers,
Sarah
sarahr at genesearch.com.au
http://www.troz.net/Rev/
More information about the use-livecode
mailing list