October's Bug ?
Posted: Tue Jul 19, 2011 9:07 pm
Is there a strange October's Bug in LiveCode ?
Working on an old hypercard project adapted under LiveCode, I've noted the strange behavior of a script intended to calculate dates.
when I try this (in message box for instance)
I obtain :
"Sunday, October 30, 2011" !!
where I should obtain "Sunday, October 31, 2011". And it's the same thing with :
Oh, a clue : all the date are sundays.
this bug, if it is one, could have adverse consequences in some cases.
NoN'
working on a new/old iMac intel, Leopard and Livecode v.4.5.3
Working on an old hypercard project adapted under LiveCode, I've noted the strange behavior of a script intended to calculate dates.
when I try this (in message box for instance)
Code: Select all
put "10/30/2011" into theDate
convert theDate to seconds
add "86400" to theDate
convert theDate to long date
put theDate --- or answer the date
"Sunday, October 30, 2011" !!
where I should obtain "Sunday, October 31, 2011". And it's the same thing with :
- "10/31/2010" ( 1288476000 secs )
"10/28/2012" ( 1351375200 secs )
"10/27/2013" ( 1382824800 secs )
"10/26/2014" ( 1414274400 secs )
"10/25/2015" ( 1445724000 secs )
Oh, a clue : all the date are sundays.
this bug, if it is one, could have adverse consequences in some cases.
NoN'
working on a new/old iMac intel, Leopard and Livecode v.4.5.3