From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 27 12:16:58 2012 Received: (at submit) by debbugs.gnu.org; 27 Jun 2012 16:16:58 +0000 Received: from localhost ([127.0.0.1]:60711 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SjuvJ-0002DJ-3b for submit@debbugs.gnu.org; Wed, 27 Jun 2012 12:16:57 -0400 Received: from eggs.gnu.org ([208.118.235.92]:46600) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SjozV-00008T-Kk for submit@debbugs.gnu.org; Wed, 27 Jun 2012 05:56:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SjovR-000306-Ni for submit@debbugs.gnu.org; Wed, 27 Jun 2012 05:52:47 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_50, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,FREEMAIL_REPLYTO_END_DIGIT, FSL_FREEMAIL_1, HTML_MESSAGE, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:56312) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjovR-000300-Hk for submit@debbugs.gnu.org; Wed, 27 Jun 2012 05:52:41 -0400 Received: from eggs.gnu.org ([208.118.235.92]:56464) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjovL-0001pm-DW for bug-coreutils@gnu.org; Wed, 27 Jun 2012 05:52:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SjovG-0002wc-Jt for bug-coreutils@gnu.org; Wed, 27 Jun 2012 05:52:34 -0400 Received: from nm15-vm0.bullet.mail.ird.yahoo.com ([77.238.189.216]:30583) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1SjovG-0002vt-7G for bug-coreutils@gnu.org; Wed, 27 Jun 2012 05:52:30 -0400 Received: from [77.238.189.233] by nm15.bullet.mail.ird.yahoo.com with NNFMP; 27 Jun 2012 09:52:28 -0000 Received: from [212.82.108.123] by tm14.bullet.mail.ird.yahoo.com with NNFMP; 27 Jun 2012 09:52:27 -0000 Received: from [127.0.0.1] by omp1032.mail.ird.yahoo.com with NNFMP; 27 Jun 2012 09:52:27 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 934114.38967.bm@omp1032.mail.ird.yahoo.com Received: (qmail 48313 invoked by uid 60001); 27 Jun 2012 09:52:27 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.fr; s=s1024; t=1340790747; bh=Fa12S1ioSAZBrf33X4UvM3cDgKTpefxc25ein581pFg=; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:Cc:MIME-Version:Content-Type; b=d4/vZctGtr7SITmIcCnLLBiSe5f0vCYT3sivKnHQ/5lEweyFH+AWXN4VPDYR5rR9Epgam1u9wDpD/F5uh32u7EOCQS6tlfEdi8mW6qIIEeYJ8zSvdlq3dD8Q2SR3BI/+yJZmt/BEnAhANEKmYsuyXHWE2tACRcfkP50BGZQY59c= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.fr; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:Cc:MIME-Version:Content-Type; b=iPQSZN4beUvwZWieAbdpsLbgDh17QV7fE0z6mgp5y0wzuw8wPIaLsXig9qPbwNsUPl3IrWplnMk8Vrt3SX8U8oP4QattPshXnvMhCYNidZ8YhW7lQwB6UCR3jxGUM4cKsOYvzYa27P9c+DtxSMVHENw4yynqBglE3CpRUHwWelY=; X-YMail-OSG: tKSP2qoVM1lDxlLvorHfKIq3GjlmEAoVIN_Ef_Ip4wwVkx7 NYjuogBXHrlqgwvWgBfV3n.IaEmVg68diARy6LYgedDscDwL3G.qeT2GvwDh jakd17AR7ySq6eE.mLModiQp_WBCTXv2mjNLkhVM4C5AQSyTABslF217tgCb jdyZCFsPVazaK6AZU6UIAsJ5lLR5eYg7MkHiJiJp94.eEtkdFQzFYk7ATQ7D sSyN.cbFIl2bhjLNxGWq8j_rmfnffkfB5oz22Mi8ndshcRghw06oVzV3HLt. wAZBxZj5imWaMalpR.lA7rFPFmd_TPNfuxNXW3guy9DBGnSefH5zuoXgZnCa rlwATieSk4boXOIQ_qRB.ZFXWZwvddMV5VdobGkWXtkwfd0s9xWk6.30cF9e yU4Qu8erSrzXApNtpYiZVrHcX5mt70V0- Received: from [83.134.59.204] by web28905.mail.ir2.yahoo.com via HTTP; Wed, 27 Jun 2012 10:52:27 BST X-Mailer: YahooMailWebService/0.8.118.349524 Message-ID: <1340790747.41469.YahooMailNeo@web28905.mail.ir2.yahoo.com> Date: Wed, 27 Jun 2012 10:52:27 +0100 (BST) From: Patrick Castet Subject: touch date bug To: "bug-coreutils@gnu.org" MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="-1732997280-963624464-1340790747=:41469" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -5.4 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 27 Jun 2012 12:16:56 -0400 Cc: "castet01@yahoo.fr" , "castet02@yahoo.fr" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: Patrick Castet List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.4 (-----) ---1732997280-963624464-1340790747=:41469 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable bug-coreutils@gnu.org=0A=0AHi,=A0=0A=0Aif you try this=0A=0A=0A$ touch a0.a= =0A$ touch -d "20000102 03:04:05" a0.a=0Ayou get =0A$ ls -la a0.a=0A-rw-r--= r-- 1 dmi Aucun 0=A0 2 janv.=A0 2000 a0.a=0A=0AAND =0A=0A=0Aif you check wi= th widows=A0 cmd, you get=A0=0A=0AC:\cygwin\tmp>dir=0A=A0Le volume dans le = lecteur C n'a pas de nom.=0A=A0Le num=E9ro de s=E9rie du volume est B8F8-5F= C7=0A=0A=A0R=E9pertoire de C:\cygwin\tmp=0A=0A27/06/2012=A0 11:47=A0=A0=A0 = =A0=A0=A0=A0=A0=A0=A0=A0=A0 .=0A27/06/2012=A0 11:47=A0=A0=A0 =A0= =A0=A0=A0=A0=A0=A0=A0=A0 ..=0A02/01/2000=A0 04:04=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0 0 a0.a=0A=0A=0ASO=0A=0Aa0.a is dated with=A0 20000= 102 04:04=0A=0A=0Awich is not correct !=0A=0Aenjoy ;-)=0A=0Apc ---1732997280-963624464-1340790747=:41469 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
bug-= coreutils@gnu.org

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&nbs= p;

C:\cygwin\tmp>dir
 Le volume dans le= lecteur C n'a pas de nom.
 Le num=E9ro de s=E9rie du volume est B8= F8-5FC7

 R=E9pertoire de C:\cygwin\tmp

27/06/2012  = 11:47    <REP>      &nbs= p;   .
27/06/2012  11:47    <REP>&nb= sp;         ..
02/01/2000  04:04       &nbs= p;         0 a0.a


SO

a0.a is dated with = 20000102 04:04


wich is not correct= !

enjoy ;-)

pc







---1732997280-963624464-1340790747=:41469-- From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 27 12:27:28 2012 Received: (at 11798) by debbugs.gnu.org; 27 Jun 2012 16:27:28 +0000 Received: from localhost ([127.0.0.1]:60731 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sjv5U-0002Sl-Ho for submit@debbugs.gnu.org; Wed, 27 Jun 2012 12:27:28 -0400 Received: from smtp.cs.ucla.edu ([131.179.128.62]:46252) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sjv5S-0002Sd-Fb for 11798@debbugs.gnu.org; Wed, 27 Jun 2012 12:27:27 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 60469A60007; Wed, 27 Jun 2012 09:23:18 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id W3qbGeyCzX9H; Wed, 27 Jun 2012 09:23:18 -0700 (PDT) Received: from penguin.cs.ucla.edu (Penguin.CS.UCLA.EDU [131.179.64.200]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 1174E39E800D; Wed, 27 Jun 2012 09:23:18 -0700 (PDT) Message-ID: <4FEB3370.9010205@cs.ucla.edu> Date: Wed, 27 Jun 2012 09:23:12 -0700 From: Paul Eggert Organization: UCLA Computer Science Department User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 MIME-Version: 1.0 To: Patrick Castet Subject: Re: bug#11798: touch date bug References: <1340790747.41469.YahooMailNeo@web28905.mail.ir2.yahoo.com> In-Reply-To: <1340790747.41469.YahooMailNeo@web28905.mail.ir2.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11798 Cc: 11798@debbugs.gnu.org, "castet01@yahoo.fr" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) On 06/27/2012 02:52 AM, Patrick Castet wrote: > touch -d "20000102 03:04:05" a0.a This works for me, on GNU/Linux: $ touch -d "20000102 03:04:05" a0.a $ ls -l --full-time a0.a -rw-r--r--. 1 eggert eggert 0 2000-01-02 03:04:05.000000000 -0800 a0.a I expect the problem that you're having with Windows has to do with the file system or the Windows clock, not with "touch" per se. That is, I expect you'll see the same problem regardless of whether "touch" is used to set the file time stamp. From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 27 12:34:11 2012 Received: (at control) by debbugs.gnu.org; 27 Jun 2012 16:34:11 +0000 Received: from localhost ([127.0.0.1]:60758 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SjvBy-0002e8-1c for submit@debbugs.gnu.org; Wed, 27 Jun 2012 12:34:10 -0400 Received: from mx1.redhat.com ([209.132.183.28]:19116) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SjvBt-0002ds-NX; Wed, 27 Jun 2012 12:34:07 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q5RGTvDI007281 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 27 Jun 2012 12:29:57 -0400 Received: from [10.3.113.134] (ovpn-113-134.phx2.redhat.com [10.3.113.134]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q5RGTuHS015069; Wed, 27 Jun 2012 12:29:57 -0400 Message-ID: <4FEB3504.1030809@redhat.com> Date: Wed, 27 Jun 2012 10:29:56 -0600 From: Eric Blake Organization: Red Hat User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 MIME-Version: 1.0 To: Patrick Castet Subject: Re: bug#11798: touch date bug References: <1340790747.41469.YahooMailNeo@web28905.mail.ir2.yahoo.com> In-Reply-To: <1340790747.41469.YahooMailNeo@web28905.mail.ir2.yahoo.com> X-Enigmail-Version: 1.4.2 OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigF6E2597C804AE24BF010CE9E" X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: control Cc: 11798-done@debbugs.gnu.org, "castet01@yahoo.fr" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigF6E2597C804AE24BF010CE9E Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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=20 I assume you meant Windows, not widows. >=20 > a0.a is dated with 20000102 04:04 >=20 >=20 > 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. --=20 Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --------------enigF6E2597C804AE24BF010CE9E Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBCAAGBQJP6zUEAAoJEKeha0olJ0NqclAH/jsLpUo+E86YkqHXsNmSSOxB 1HJQLbfdVLGOcoc5lg5ebcpp7Vy5lTfp4gTWbrXseJf7LunQt7pN+KhiiyDrX4Vs B2OxQgMDmYMsRW4RZtAq56SqrrQXbdY3Vr3HQIo1GnQvdggloB+dIMiBqG/dcVP/ rm76eYdgBNkHCGMRKdmTs7rB/J2FoLdjckr9zrnIq6sDo4VDA3ePdso8Jbn1yxsn fLB1Jzb7g1nt/kW4vQk19FNaEgut+eXuDHmqlduR7N4hQvtwnWOInuq/9rQE4SwJ m+meh+q7/aGT6r+OJjI56klmQiB890llrQK+8tQVtlG/kYzazdNdtocWUuIyeAA= =/OfK -----END PGP SIGNATURE----- --------------enigF6E2597C804AE24BF010CE9E-- From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 28 01:37:54 2012 Received: (at 11798) by debbugs.gnu.org; 28 Jun 2012 05:37:54 +0000 Received: from localhost ([127.0.0.1]:33353 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sk7QP-0006NC-Dr for submit@debbugs.gnu.org; Thu, 28 Jun 2012 01:37:53 -0400 Received: from joseki.proulx.com ([216.17.153.58]:42242) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sk7QN-0006N5-AB for 11798@debbugs.gnu.org; Thu, 28 Jun 2012 01:37:52 -0400 Received: from hysteria.proulx.com (hysteria.proulx.com [192.168.230.119]) by joseki.proulx.com (Postfix) with ESMTP id 5BBD0211D9; Wed, 27 Jun 2012 23:33:40 -0600 (MDT) Received: by hysteria.proulx.com (Postfix, from userid 1000) id 1AB552DC5E; Wed, 27 Jun 2012 23:33:40 -0600 (MDT) Date: Wed, 27 Jun 2012 23:33:40 -0600 From: Bob Proulx To: Patrick Castet , 11798@debbugs.gnu.org Subject: Re: bug#11798: touch date bug Message-ID: <20120628053339.GA14371@hysteria.proulx.com> References: <1340790747.41469.YahooMailNeo@web28905.mail.ir2.yahoo.com> <4FEB3504.1030809@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4FEB3504.1030809@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11798 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) Eric Blake wrote: > Patrick Castet wrote: > > $ touch a0.a > > $ touch -d "20000102 03:04:05" a0.a > > if you check with widows cmd, you get > > 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. Additionally it appears you are operating on a FAT filesystem. MS FAT filesystems represents times with only a 2-second resolution. This causes all timestamps to be even second values. Odd second values are modified to fit. This is the :05 time being set to :04 that is illustrated above. This problem for example caused 'rsync' to include a --modify-window option so that it can be used like --modify-window=1 to allow times to differ by up to 1 second to work around this issue. Bob From unknown Tue Aug 19 21:03:21 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 26 Jul 2012 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator