From unknown Sun Jun 22 17:15:00 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17253: date "--date=-x\ days" Resent-From: hanes Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Sat, 12 Apr 2014 18:32:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 17253 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 17253@debbugs.gnu.org X-Debbugs-Original-To: bug-coreutils@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.139732750822092 (code B ref -1); Sat, 12 Apr 2014 18:32:03 +0000 Received: (at submit) by debbugs.gnu.org; 12 Apr 2014 18:31:48 +0000 Received: from localhost ([127.0.0.1]:46419 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WZ2iR-0005kA-0d for submit@debbugs.gnu.org; Sat, 12 Apr 2014 14:31:47 -0400 Received: from eggs.gnu.org ([208.118.235.92]:46238) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WZ073-0000ru-9W for submit@debbugs.gnu.org; Sat, 12 Apr 2014 11:45:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WZ06o-0003np-8X for submit@debbugs.gnu.org; Sat, 12 Apr 2014 11:44:56 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:43255) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WZ06o-0003nl-5T for submit@debbugs.gnu.org; Sat, 12 Apr 2014 11:44:46 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47937) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WZ06g-00087h-M2 for bug-coreutils@gnu.org; Sat, 12 Apr 2014 11:44:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WZ06Z-0003m5-6u for bug-coreutils@gnu.org; Sat, 12 Apr 2014 11:44:38 -0400 Received: from mout.gmx.net ([212.227.15.19]:52833) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WZ06Y-0003lq-SK for bug-coreutils@gnu.org; Sat, 12 Apr 2014 11:44:31 -0400 Received: from [192.168.0.101] ([91.141.4.210]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0LmbVT-1X8blv44hf-00aE7f for ; Sat, 12 Apr 2014 17:44:29 +0200 Message-ID: <1397317467.20279.20.camel@hanes-X55CR> From: hanes Date: Sat, 12 Apr 2014 17:44:27 +0200 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit Mime-Version: 1.0 X-Provags-ID: V03:K0:JuO8Ri550kYpNRYWTsibYPvzPLx/A7d++hsK7k+1u49/4Kbnv0M RQ55UNQ5L2m9kyXhcOquBr/ofH04/GHyq7zo++hbR7cufhv3THcn41Ynltt4AK6yeumsee+ AFxsCSZV5t3/LiEYNykixnBf32167PN/TgA0THcP+DyDuo3V49Enu1lQHFQkJUfh+M+TFmr cDoMoNYgAglkl4j/RBHYQ== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-Mailman-Approved-At: Sat, 12 Apr 2014 14:31:45 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.1 (----) Hello, Tonight (12. of April) in the hour after Midnight I encountered a missing day when I used the '--date=-13\ days' option. I can reproduce the bug best, when going backwards in hours; as far as I can see, there is a hour missing on 30. of March between 01 and 03 O'Clock. My output is: date +%Y.%m.%d__%H_%M 2014.04.12__17_28 date +%Y.%m.%d__%H_%M --date=-326\ hours 2014.03.30__03_28 date +%Y.%m.%d__%H_%M --date=-327\ hours 2014.03.30__01_28 I am working on a Ubuntu Linux 64bit Mashine. with Kind Regards, hanes From unknown Sun Jun 22 17:15:00 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17253: date "--date=-x\ days" Resent-From: Leslie S Satenstein Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Sat, 12 Apr 2014 19:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17253 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: hanes , "17253@debbugs.gnu.org" <17253@debbugs.gnu.org> Reply-To: Leslie S Satenstein Received: via spool by 17253-submit@debbugs.gnu.org id=B17253.13973317792928 (code B ref 17253); Sat, 12 Apr 2014 19:43:02 +0000 Received: (at 17253) by debbugs.gnu.org; 12 Apr 2014 19:42:59 +0000 Received: from localhost ([127.0.0.1]:46472 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WZ3pL-0000lA-87 for submit@debbugs.gnu.org; Sat, 12 Apr 2014 15:42:59 -0400 Received: from nm35-vm0.bullet.mail.bf1.yahoo.com ([72.30.238.72]:34544) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WZ3pI-0000kr-J8 for 17253@debbugs.gnu.org; Sat, 12 Apr 2014 15:42:57 -0400 Received: from [66.196.81.173] by nm35.bullet.mail.bf1.yahoo.com with NNFMP; 12 Apr 2014 19:42:51 -0000 Received: from [98.139.212.225] by tm19.bullet.mail.bf1.yahoo.com with NNFMP; 12 Apr 2014 19:42:51 -0000 Received: from [127.0.0.1] by omp1034.mail.bf1.yahoo.com with NNFMP; 12 Apr 2014 19:42:51 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 3210.82979.bm@omp1034.mail.bf1.yahoo.com Received: (qmail 40597 invoked by uid 60001); 12 Apr 2014 19:42:50 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1397331770; bh=kwUaOLK18xbSD3WvBdMH4o9MrsoA3KZo7wPUjtJdpIA=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=TvODYoDO5K7x2X+/flCRDsA8aNCicI4cJdyBEJo7utXSMGgmbMgLOwA3ILQWc7c8TQ9VW3CBJALpd3qvIm4nOXlUjX24a8s28/l1Z+2lsuLmo/uETXFtURcfKgiSsOrbrnbwSim5UaEQ1la8FzryDb04AeCbW2D0BNUuNamo2cI= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=D5FIXXoxJcvm7inW16M1lXSUgbVk1vgX4eN7LpMn/2uQ8dUe1Jio7QwpmHDt6Q+SIxMlvvKxvCrUIllpAaJBHGQsCZn1H5W15ifuf+na2Vt5yGstXJbCYdkG1dyiQe3SU0pmg1abbtLEx6b1UAMdayI4BrUbXtwU85AUNvhqh2k=; X-YMail-OSG: Sv5bLGIVM1meKTiOQObP.YYLuWWbF_xfoH7NKJcJyawj2go Ufz822_bmzGQ3E4IFj6g6_QzBbhGERAmwVtOe85oAqFNzlTSRSPwgYytb9KW BombXxHy4JXBZfXxaw.xOIOaHdULWX6VHKfEOgnxYsCXzuoaTFF1FAp__Hxg 32NSDecNh0KPvrBvKU7lQyCUo4502ZdF0fDd1ChNOSC0iV4mxFGmNfWhOR4r 9PYc6lYezYZTsSLTWwaF_jKQ5omDNZ1rZPFi685Sg1phWsY6I017Jj6h8KSB w0SxjEsbVIDq8zrqHKGRDB5cE9hcfAa7h8eOSZClJfqGkBvcQ2x4dm3lmzi8 3iT.Sqi9V98YPqj0BpvxThMoSmPcFoDAsPjDwvV1YC.3pVHLNyyZzave526C i4nYKWQUopUecYqiebns0uLTd6HrekPnsQrcvOfppXHo66gWs1fNQdXxB9rr e1RdutwFiviSMaB_F7szszITgKvOoEK_A6N1Yei.jzHJZWWu5wO6yA2t9nlE zMVZ1y1hgkYLuGjTF_ThG26cvG2pUkzY0z2uBNcO2ZQcaqHJ.DJA- Received: from [70.49.120.43] by web142602.mail.bf1.yahoo.com via HTTP; Sat, 12 Apr 2014 12:42:50 PDT X-Rocket-MIMEInfo: 002.001, V2hhdCB0aW1lem9uZSBpcyB0aGUgc2V0dGluZyBmb3IgeW91ciBzeXN0ZW0_wqAgSXMgaXQgcG9zc2libGUgdGhhdCB0aGUgdGltZXNldHRpbmcgaXMgZm9yIHVuaXZlcnNhbCB0aW1lLsKgIElzIHRoZSBiaW9zIGNsb2NrIHNhbWUgYXMgdGhlIHRpbWUgc2hvd24gb24gdGhlIHNjcmVlbj8KCgrCoApSZWdhcmRzIAoKwqBMZXNsaWUKCk1yLiBMZXNsaWUgU2F0ZW5zdGVpbgpTRU5UIEZST00gTVkgT1BFTiBTT1VSQ0UgTElOVVggU1lTVEVNLgoKCgoKPl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCj4BMAEBAQE- X-Mailer: YahooMailWebService/0.8.182.648 References: <1397317467.20279.20.camel@hanes-X55CR> Message-ID: <1397331770.24625.YahooMailNeo@web142602.mail.bf1.yahoo.com> Date: Sat, 12 Apr 2014 12:42:50 -0700 (PDT) From: Leslie S Satenstein In-Reply-To: <1397317467.20279.20.camel@hanes-X55CR> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="-1585520525-1576376775-1397331770=:24625" X-Spam-Score: -0.4 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.4 (/) ---1585520525-1576376775-1397331770=:24625 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable What timezone is the setting for your system?=A0 Is it possible that the ti= mesetting is for universal time.=A0 Is the bios clock same as the time show= n on the screen?=0A=0A=0A=A0=0ARegards =0A=0A=A0Leslie=0A=0AMr. Leslie Sate= nstein=0ASENT FROM MY OPEN SOURCE LINUX SYSTEM.=0A=0A=0A=0A=0A>____________= ____________________=0A> From: hanes =0A>To: 17253@debbugs= .gnu.org =0A>Sent: Saturday, April 12, 2014 11:44 AM=0A>Subject: bug#17253:= date "--date=3D-x\ days"=0A> =0A>=0A>Hello,=0A>=0A>Tonight (12. of April) = in the hour after Midnight I encountered a=0A>missing day when I used the '= --date=3D-13\ days' option.=0A>I can reproduce the bug best, when going bac= kwards in hours;=0A>as far as I can see, there is a hour missing on 30. of = March between 01=0A>and 03 O'Clock.=0A>=0A>My output is:=0A>date +%Y.%m.%d_= _%H_%M=0A>2014.04.12__17_28=0A>=0A>date +%Y.%m.%d__%H_%M --date=3D-326\ hou= rs=0A>2014.03.30__03_28=0A>=0A>date +%Y.%m.%d__%H_%M --date=3D-327\ hours= =0A>2014.03.30__01_28=0A>=0A>=0A>I am working on a Ubuntu Linux 64bit Mashi= ne.=0A>=0A>with Kind Regards,=0A>=0A>hanes=0A>=0A>=0A>=0A>=0A>=0A>=0A> ---1585520525-1576376775-1397331770=:24625 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
What timezone is the setting for your system?  Is it poss= ible that the timesetting is for universal time.  Is the bios clock sa= me as the time shown on the screen?

&nb= sp;
Regards

 = ;Leslie
Mr. Leslie Satenstein
SENT FROM MY OPEN SOURCE = LINUX SYSTEM.



From: hanes <h.feiner@gmx.at>
To: 17253@debbugs.gnu.org
Sent: Saturday, April 12, 2014 11:44 A= M
Subject: bug#17253: = date "--date=3D-x\ days"

Hello,

Tonight (12. of April) in the = hour after Midnight I encountered a
missing day when I used the '--date= =3D-13\ days' option.
I can reproduce the bug best, when going backwards= in hours;
as far as I can see, there is a hour missing on 30. of March = between 01
and 03 O'Clock.

My output is:
date +%Y.%m.%d__%H_%M=
2014.04.12__17_28

date +%Y.%m.%d__%H_%M --date=3D-326\ hours
= 2014.03.30__03_28

date +%Y.%m.%d__%H_%M --date=3D-327\ hours
2014= .03.30__01_28


I am working on a Ubuntu Linux 64bit Mashine.
<= br>with Kind Regards,

hanes






=
---1585520525-1576376775-1397331770=:24625-- From unknown Sun Jun 22 17:15:00 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17253: date "--date=-x\ days" Resent-From: Bob Proulx Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Sat, 12 Apr 2014 19:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17253 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: hanes Cc: 17253@debbugs.gnu.org Received: via spool by 17253-submit@debbugs.gnu.org id=B17253.13973319773351 (code B ref 17253); Sat, 12 Apr 2014 19:47:02 +0000 Received: (at 17253) by debbugs.gnu.org; 12 Apr 2014 19:46:17 +0000 Received: from localhost ([127.0.0.1]:46478 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WZ3sX-0000rw-1i for submit@debbugs.gnu.org; Sat, 12 Apr 2014 15:46:17 -0400 Received: from joseki.proulx.com ([216.17.153.58]:53826) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WZ3sV-0000rm-Ny; Sat, 12 Apr 2014 15:46:16 -0400 Received: from hysteria.proulx.com (hysteria.proulx.com [192.168.230.119]) by joseki.proulx.com (Postfix) with ESMTP id 8E88321233; Sat, 12 Apr 2014 13:46:14 -0600 (MDT) Received: by hysteria.proulx.com (Postfix, from userid 1000) id 6785D2DCD8; Sat, 12 Apr 2014 13:46:14 -0600 (MDT) Date: Sat, 12 Apr 2014 13:46:14 -0600 From: Bob Proulx Message-ID: <20140412194614.GA13513@hysteria.proulx.com> References: <1397317467.20279.20.camel@hanes-X55CR> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1397317467.20279.20.camel@hanes-X55CR> User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Score: -0.4 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.4 (/) tag 17253 + moreinfo thanks hanes wrote: > Tonight (12. of April) in the hour after Midnight I encountered a > missing day when I used the '--date=-13\ days' option. > I can reproduce the bug best, when going backwards in hours; > as far as I can see, there is a hour missing on 30. of March between 01 > and 03 O'Clock. > > My output is: > date +%Y.%m.%d__%H_%M > 2014.04.12__17_28 > > date +%Y.%m.%d__%H_%M --date=-326\ hours > 2014.03.30__03_28 > > date +%Y.%m.%d__%H_%M --date=-327\ hours > 2014.03.30__01_28 Thank you for your report. But I think this is very likely not a bug in date but a misunderstanding of timezones and daylight saving time. What is your timezone? You didn't say but that is critical information. Very likely your timezone went into DST around that time. You would be better served by using UTC to avoid DST issues. Please read the FAQ reference on date and say if your problem is already answered there. http://www.gnu.org/software/coreutils/faq/#The-date-command-is-not-working-right_002e Bob From unknown Sun Jun 22 17:15:00 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17253: Re: bug#17253: date "--date=-x\ days" References: <1397317467.20279.20.camel@hanes-X55CR> In-Reply-To: <1397317467.20279.20.camel@hanes-X55CR> Resent-From: hanes Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Sun, 13 Apr 2014 05:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17253 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: moreinfo To: 17253@debbugs.gnu.org Received: via spool by 17253-submit@debbugs.gnu.org id=B17253.139736856516212 (code B ref 17253); Sun, 13 Apr 2014 05:57:02 +0000 Received: (at 17253) by debbugs.gnu.org; 13 Apr 2014 05:56:05 +0000 Received: from localhost ([127.0.0.1]:46653 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WZDOd-0004DP-PA for submit@debbugs.gnu.org; Sun, 13 Apr 2014 01:56:04 -0400 Received: from mout.gmx.net ([212.227.17.22]:62146) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WZDOa-0004Cr-Qk for 17253@debbugs.gnu.org; Sun, 13 Apr 2014 01:56:02 -0400 Received: from [192.168.0.101] ([178.115.133.205]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0MgszY-1WM6MU07Xs-00M3Sg for <17253@debbugs.gnu.org>; Sun, 13 Apr 2014 07:55:54 +0200 Message-ID: <1397368552.2974.18.camel@hanes-X55CR> From: hanes Date: Sun, 13 Apr 2014 07:55:52 +0200 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit Mime-Version: 1.0 X-Provags-ID: V03:K0:lRbJ1VRxjfXILK62JFs2tazzCoSbXFAAmc725mmbVJEih9RcHAn e/yWdxwzn47Bev+XwJtZo2D2HgC9fYykj6672+ArGEE3CwNIp/BJYlyM8HFJyrzdPFyLQK0 Q3oXcT8BdZfeyI7/cj6MtTRZUIHjzCo4VwlOUaem7ht+5cYQcCLc+JSFOauSrOiVCwOm9V5 sPqowI3swkXpM9w1k3Sqw== X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) You got me to the right point with the daylight saving time. I really do not thought it is that trivial. So I am sorry to bother You with this, and disgrace me like that. But to answer the Questions: I switched my bios clock two hours forward, but of course it had no effect; so everything is actually still all right. My timezone switched in that period to summertime, here is the output: user@host - Current Time: 07:42 :~$ date -d "12:00 today -346 hours" +"Output: %Y.%m.%d__%H Timezone: %z" Output: 2014.03.30__01 Timezone: +0100 user@host - Current Time: 07:42 :~$ date -d "12:00 today -345 hours" +"Output: %Y.%m.%d__%H Timezone: %z" Output: 2014.03.30__03 Timezone: +0200 So, have a nice Day anyway. with kind regards, hanes From unknown Sun Jun 22 17:15:00 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: hanes Subject: bug#17253: closed (Re: bug#17253: Re: bug#17253: date "--date=-x\ days") Message-ID: References: <20140413202759.GA377@hysteria.proulx.com> <1397317467.20279.20.camel@hanes-X55CR> X-Gnu-PR-Message: they-closed 17253 X-Gnu-PR-Package: coreutils X-Gnu-PR-Keywords: moreinfo Reply-To: 17253@debbugs.gnu.org Date: Sun, 13 Apr 2014 20:29:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1397420943-22151-1" This is a multi-part message in MIME format... ------------=_1397420943-22151-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #17253: date "--date=3D-x\ days" which was filed against the coreutils package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 17253@debbugs.gnu.org. --=20 17253: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D17253 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1397420943-22151-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 17253-done) by debbugs.gnu.org; 13 Apr 2014 20:28:04 +0000 Received: from localhost ([127.0.0.1]:47347 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WZR0W-0005jc-5j for submit@debbugs.gnu.org; Sun, 13 Apr 2014 16:28:04 -0400 Received: from joseki.proulx.com ([216.17.153.58]:58880) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WZR0U-0005jC-1W for 17253-done@debbugs.gnu.org; Sun, 13 Apr 2014 16:28:03 -0400 Received: from hysteria.proulx.com (hysteria.proulx.com [192.168.230.119]) by joseki.proulx.com (Postfix) with ESMTP id B779921230; Sun, 13 Apr 2014 14:27:59 -0600 (MDT) Received: by hysteria.proulx.com (Postfix, from userid 1000) id 7505A2E6E1; Sun, 13 Apr 2014 14:27:59 -0600 (MDT) Date: Sun, 13 Apr 2014 14:27:59 -0600 From: Bob Proulx To: hanes Subject: Re: bug#17253: Re: bug#17253: date "--date=-x\ days" Message-ID: <20140413202759.GA377@hysteria.proulx.com> References: <1397317467.20279.20.camel@hanes-X55CR> <1397368552.2974.18.camel@hanes-X55CR> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1397368552.2974.18.camel@hanes-X55CR> User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Score: -1.0 (-) X-Debbugs-Envelope-To: 17253-done Cc: 17253-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: 17253@debbugs.gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) hanes wrote: > You got me to the right point with the daylight saving time. All of us were pretty sure that would be the root of the problem. > I really do not thought it is that trivial. > So I am sorry to bother You with this, and disgrace me like that. Please do not worry. We are happy to help. > But to answer the Questions: > I switched my bios clock two hours forward, but of course it had no > effect; so everything is actually still all right. You are using a Unix-like system and should be running one of the NTP daemons to keep your clock adjusted correctly. I don't know about Ubuntu but most systems will run an "ntp" daemon to do this. If you do, I think you are, then your BIOS setting will not matter because as soon as the operating system boots it will set the clock to the correct time from the Internet time servers. When you say BIOS you really mean the hardware clock. The hardware clock is the initial time setting when there isn't any other time source. Such as when booting a system without an Internet connection. In the case of not having an Internet connection then the hardware clock setting is the best setting available. But in the case of a network connection to the Internet time servers then that time will override the hardware clock time. So as you can see in a network environment changing the clock from the BIOS settings will not have any effect! > My timezone switched in that period to summertime, here is the output: > user@host - Current Time: 07:42 :~$ > date -d "12:00 today -346 hours" +"Output: %Y.%m.%d__%H Timezone: %z" > Output: 2014.03.30__01 Timezone: +0100 > user@host - Current Time: 07:42 :~$ > date -d "12:00 today -345 hours" +"Output: %Y.%m.%d__%H Timezone: %z" > Output: 2014.03.30__03 Timezone: +0200 Yes. If you work with UTC time then you can avoid all of those DST problems. But working at 12:00 noon avoids the problem too because no known timezone changes DST in the middle of the day. > So, have a nice Day anyway. > with kind regards, You too. I am marking this bug as closed with this message. Bob ------------=_1397420943-22151-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 12 Apr 2014 18:31:48 +0000 Received: from localhost ([127.0.0.1]:46419 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WZ2iR-0005kA-0d for submit@debbugs.gnu.org; Sat, 12 Apr 2014 14:31:47 -0400 Received: from eggs.gnu.org ([208.118.235.92]:46238) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WZ073-0000ru-9W for submit@debbugs.gnu.org; Sat, 12 Apr 2014 11:45:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WZ06o-0003np-8X for submit@debbugs.gnu.org; Sat, 12 Apr 2014 11:44:56 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:43255) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WZ06o-0003nl-5T for submit@debbugs.gnu.org; Sat, 12 Apr 2014 11:44:46 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47937) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WZ06g-00087h-M2 for bug-coreutils@gnu.org; Sat, 12 Apr 2014 11:44:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WZ06Z-0003m5-6u for bug-coreutils@gnu.org; Sat, 12 Apr 2014 11:44:38 -0400 Received: from mout.gmx.net ([212.227.15.19]:52833) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WZ06Y-0003lq-SK for bug-coreutils@gnu.org; Sat, 12 Apr 2014 11:44:31 -0400 Received: from [192.168.0.101] ([91.141.4.210]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0LmbVT-1X8blv44hf-00aE7f for ; Sat, 12 Apr 2014 17:44:29 +0200 Message-ID: <1397317467.20279.20.camel@hanes-X55CR> Subject: date "--date=-x\ days" From: hanes To: bug-coreutils@gnu.org Date: Sat, 12 Apr 2014 17:44:27 +0200 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit Mime-Version: 1.0 X-Provags-ID: V03:K0:JuO8Ri550kYpNRYWTsibYPvzPLx/A7d++hsK7k+1u49/4Kbnv0M RQ55UNQ5L2m9kyXhcOquBr/ofH04/GHyq7zo++hbR7cufhv3THcn41Ynltt4AK6yeumsee+ AFxsCSZV5t3/LiEYNykixnBf32167PN/TgA0THcP+DyDuo3V49Enu1lQHFQkJUfh+M+TFmr cDoMoNYgAglkl4j/RBHYQ== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sat, 12 Apr 2014 14:31:45 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.1 (----) Hello, Tonight (12. of April) in the hour after Midnight I encountered a missing day when I used the '--date=-13\ days' option. I can reproduce the bug best, when going backwards in hours; as far as I can see, there is a hour missing on 30. of March between 01 and 03 O'Clock. My output is: date +%Y.%m.%d__%H_%M 2014.04.12__17_28 date +%Y.%m.%d__%H_%M --date=-326\ hours 2014.03.30__03_28 date +%Y.%m.%d__%H_%M --date=-327\ hours 2014.03.30__01_28 I am working on a Ubuntu Linux 64bit Mashine. with Kind Regards, hanes ------------=_1397420943-22151-1--