File time off by an hour...

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
keithglong
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 348
Joined: Sun Jul 03, 2011 2:04 am

File time off by an hour...

Post by keithglong » Wed Dec 21, 2011 7:58 am

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

keithglong
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 348
Joined: Sun Jul 03, 2011 2:04 am

Re: File time off by an hour...

Post by keithglong » Thu Dec 22, 2011 1:04 am

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

Post Reply