Re: Daylight Saving Time changes file times.
From: Colin (colin_at_greench.co.uk)
Date: 04/08/04
- Next message: Joe V: "Re: Microsoft Java Virtual Machine"
- Previous message: Phil \(a.k.a. purplehaz\): "Re: Word 2003 adress book"
- In reply to: Fred Hebert: "Re: Daylight Saving Time changes file times."
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 08 Apr 2004 19:49:10 +0100
"Fred Hebert" <fhebert@delete-this-part-priority.net> wrote:
>Actually I do not use the display tme, I use the UTC time
>returned by a system call. The problem is that it returns
>different results depending on wether DST is in effect or
>not. After the last DST change I changed the method
>hoping to avoid the problem, but no luck.
>
>I have another plan to fix the problem, but it goes beyond
>my software. My backup software did an incremental backup
>monday night, but because of the file time change
>everything got backed up, and the backups didn't complete
>until almost noon today.
>
>I have a mixed LAN with NT4, Win2003, Netware, Unix (SCO),
>and Linux (RedHat) servers, and only the Windows servers
>have the problem.
>
>I think that a file with a time of 4:11 on Friday should
>have a 4:11 time on Monday, that is displayed, UTC, or
>other. Yesterday I developed a routine that looks at the
>file time, and determines if it is during DST and returns
>the correct time. It really shouldn't be this difficult
>just to get an accurate file time.
>
>
>>-----Original Message-----
>>Get smarter clients - they should be synching on UTC time
>not display time. Store your files on Fat partitions (they
>only use local time).
The reason you do not get this problem with Unix is that it is done
correctly (of course). All dates and times are stored as UTC, and only
offset when displayed. Trust MS to get it wrong.
Colin.
- Next message: Joe V: "Re: Microsoft Java Virtual Machine"
- Previous message: Phil \(a.k.a. purplehaz\): "Re: Word 2003 adress book"
- In reply to: Fred Hebert: "Re: Daylight Saving Time changes file times."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|