[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: ISO-8601 dates and issue 614

From: Tim Waugh <twaugh_at_redhat.com>
Date: 2002-05-06 14:36:10 CEST

On Mon, May 06, 2002 at 08:27:11AM -0400, Alan Langford wrote:

> You will find an interesting platform dependency here. There are lots of
> Windows/CVS complaints about file modification date changes when a system
> switches from standard to daylight savings time and back. In fact (ahem)
> most versions of Windows seem to write the modification date to the disk as
> UTC. This means that when the user changes time zones, or moves from or to
> daylight savings, the file modification times appear to change when in fact
> the OS is reporting an accurate date. The many rants against Windows and
> suggestions that that this is a "bug" suggest that most Unix based systems
> write local time to the disk.

Unix-based systems of course use UTC, as any sane system would.

The NT bug, as I recall, is that stat() will return a different
structure before and after a DST change. The time_t fields are
actually adjusted, and can't be interpreted as 'seconds since the
Epoch'. (Perhaps I'm misremembering.)


  • application/pgp-signature attachment: stored
Received on Mon May 6 14:37:10 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.