This is the mail archive of the
mailing list for the Cygwin project.
Re: Time differences between USB - HD
- From: "Christian Franke" <Christian dot Franke at t-online dot de>
- To: "Cygwin" <cygwin at cygwin dot com>
- Date: Mon, 26 Oct 2009 11:56:54 +0100
- Subject: Re: Time differences between USB - HD
- References: <4AE4E191.email@example.com>
- Reply-to: "Christian Franke" <Christian dot Franke at t-online dot de>
Angelo Graziosi wrote
> Just now we are back to Standard Time, I noticed that the files on USB
> key have timestamps +1 hour, compared to the same on HD.
> This happens only under Cygwin: there is not difference under DOS box.
This is "normal" if the filesystems differ between HD (NTFS) and USB key
(FAT?). NTFS stores file times as UTC, FAT as local time.
The problem is the interesting design (IMO this is a bug:-) of the Win32
file time conversion functions:
The difference between Cygwin and other apps occur because Cygwin uses
its own (correct) UTC->localtime conversion but apps like explorer and
cmd uses the (broken) conversion from Win32 API.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple