A strange bug (?) with calendar (from the Scripter's Scrapbook)
Dom
mcdomi at free.fr
Mon Mar 8 13:49:53 EST 2004
Rob Cozens <rcozens at pon.net> wrote:
> I created a stack with a button and field, pasted the handlers you
> posted into the button, and it works fine...April 1995, April 2004,
> and October 1995 all show the 22nd here.
Hmmm... seems to be Voodoo ;-)
Anyway, I posted also on the french list, and I am answered that
"MetaCard always had problems with dates"
He stated that this strange behaviour could be explained (in short)
"combined with a convoluted script, i.e. two _convert_ in succession
lead to a rounding error at the item 4 (hours) level -- which is
cumulative, and causes to shift one day at a point..."
I took a more elaborate glance... it really *adds* one hour a day,
starting from 4 -- which leads to a "jump" on day 21 ;-)
Needless to say, that's a funniest bug ;->
And a sly one, as January & February don't exhibit it, as the "hour"
remains fixed at 2 -- in March it is good until 27th, so no jump...
November & December are good, also.
--
Vous parlez français ? faites un tour sur le groupe francophone !
revolutionfr-subscribe at yahoogroupes.fr
Jetez un oeil sur RevoBlog <http://revoblog.free.fr> !
More information about the use-livecode
mailing list