Date bug?

Mats Åström matsastrom at yahoo.se
Fri Dec 7 14:02:31 EST 2012


I have a simple script that adds one day to a date and returns the next date.
I expect this to return 11/1/12, and it does:

put"10/31/12"intoaDate
convertaDate toseconds
add 86400 to aDate
convert aDate to short date
return aDate

But change "10/31/12" to "10/31/10" - it returns 10/31/10
It does not add a day - instead it returns the same date.
The same thing happens for these years (maybe some more, I have only tested from 1970 to 2051):
1999, 2004, 2010, 2021, 2027, 2032

Can anybody confirm?

/Mats
 
"Change is the price for survival"
/Gary Player


More information about the use-livecode mailing list