Hi All,
I am using detailed files to obtain a file's date and time modified (converting it to short date and short time)... All works well, but I noticed the following... Several of my files have a date of 9/24/11 with a time of 2:26 PM (as shown in Windows explorer). However, when I obtain and convert the date and time in LiveCode, the date appears correctly, but the time is off by 1 hour and shows as 1:26 PM in lieu of 2:26 PM. However, when I open the file and save it, it shows the correct time after modifying the file. (The problem seems to be with older files from several months back.)
Does this have something to do with daylight savings time or something? How can I ensure that the file modified time that's shown in a LiveCode app. appears exactly as it appears in Windows explorer? FYI: I am on Central Time here...
Thanks,
- Boo
File time off by an hour...
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- VIP Livecode Opensource Backer
- Posts: 348
- Joined: Sun Jul 03, 2011 2:04 am
-
- VIP Livecode Opensource Backer
- Posts: 348
- Joined: Sun Jul 03, 2011 2:04 am
Re: File time off by an hour...
Hmmmm. No responses to this. I did experiment a bit and noticed that when I set my PC's time zone to Eastern time in lieu of Central time, the file times show correctly. Also, without switching time zones, the file dates show an hour behind for files saved during months falling in daylight savings, and show correctly for files saved during months not falling in daylight savings... Weird. Is this a bug? Anyone have a workaround?
Thanks,
- Boo
Thanks,
- Boo