emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#11798: closed (touch date bug)


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#11798: closed (touch date bug)
Date: Wed, 27 Jun 2012 16:35:01 +0000

Your message dated Wed, 27 Jun 2012 10:29:56 -0600
with message-id <address@hidden>
and subject line Re: bug#11798: touch date bug
has caused the debbugs.gnu.org bug report #11798,
regarding touch date bug
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
11798: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=11798
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: touch date bug Date: Wed, 27 Jun 2012 10:52:27 +0100 (BST)
address@hidden

Hi, 

if you try this


$ touch a0.a
$ touch -d "20000102 03:04:05" a0.a
you get
$ ls -la a0.a
-rw-r--r-- 1 dmi Aucun 0  2 janv.  2000 a0.a

AND

if you check with widows  cmd, you get 

C:\cygwin\tmp>dir
 Le volume dans le lecteur C n'a pas de nom.
 Le numéro de série du volume est B8F8-5FC7

 Répertoire de C:\cygwin\tmp

27/06/2012  11:47    <REP>          .
27/06/2012  11:47    <REP>          ..
02/01/2000  04:04                 0 a0.a


SO

a0.a is dated with  20000102 04:04


wich is not correct !

enjoy ;-)

pc








--- End Message ---
--- Begin Message --- Subject: Re: bug#11798: touch date bug Date: Wed, 27 Jun 2012 10:29:56 -0600 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1
tag 11798 notabug
thanks

On 06/27/2012 03:52 AM, Patrick Castet wrote:

> $ touch a0.a
> $ touch -d "20000102 03:04:05" a0.a

Thanks for the report.

> if you check with widows  cmd, you get 

I assume you meant Windows, not widows.

> 
> a0.a is dated with  20000102 04:04
> 
> 
> wich is not correct !

Welcome to the joys of Microsoft's decision to store file timestamps
with respect to local timezones rather than with respect to UTC, even
though that means that physically relocating your machine to a spot with
different daylight savings rules renders those timestamps ambiguous.
The difference of one hour that you are seeing is due to Windows'
insistence on applying a (possibly wrong) daylight savings adjustment,
based on the timestamp on the file vs. what Windows considers as your
current time zone.

Furthermore, since this is an issue that you noticed with the cygwin
port of coreutils, you might be better off asking on the cygwin list.
Perhaps they will agree, and consider this a bug in cygwin1.dll for
converting timestamps in the futimens() and or stat() functions into
file timestamps in a manner inconsistent with Windows daylight savings
gyrations; but more likely the cygwin folks will state that there is
nothing that can be done about the mismatch in opinions on how daylight
savings affect Window file time stamps.

At any rate, this is a Windows or cygwin issue, not an upstream one, so
I'm closing out this upstream bug as a non-issue.

-- 
Eric Blake   address@hidden    +1-919-301-3266
Libvirt virtualization library http://libvirt.org



Attachment: signature.asc
Description: OpenPGP digital signature


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]