I have a file on my local drive (Windows 2000) with a last modified date/time of Jan 30, 2005 12:09:34 AM.
When I create a File object for that file today, call lastModified() and make a Date object from it, the result is Jan 29, 2005 23:09:34 PM - one hour earlier.
It seems to be making some sort of unnecessary adjustment for daylight savings time. I tried creating a TimeZone object for "US/Eastern" and using a Calendar object set to that time zone to create the date, but it didn't help.
I tried it on a file created today (we are on daylight time now), and it gets the correct date/time with no problem.
Does anyone have any experience with this bug? How can I get the actual date/time from the File object?
When I create a File object for that file today, call lastModified() and make a Date object from it, the result is Jan 29, 2005 23:09:34 PM - one hour earlier.
It seems to be making some sort of unnecessary adjustment for daylight savings time. I tried creating a TimeZone object for "US/Eastern" and using a Calendar object set to that time zone to create the date, but it didn't help.
I tried it on a file created today (we are on daylight time now), and it gets the correct date/time with no problem.
Does anyone have any experience with this bug? How can I get the actual date/time from the File object?