From unknown Tue Jun 24 20:55:22 2025 X-Loop: help-debbugs@gnu.org Subject: bug#14146: [date command] Possible bug Resent-From: Ivan Lombardi Borgia Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-coreutils@gnu.org Resent-Date: Fri, 05 Apr 2013 15:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 14146 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 14146@debbugs.gnu.org X-Debbugs-Original-To: bug-coreutils@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.136517501327579 (code B ref -1); Fri, 05 Apr 2013 15:17:02 +0000 Received: (at submit) by debbugs.gnu.org; 5 Apr 2013 15:16:53 +0000 Received: from localhost ([127.0.0.1]:35684 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UO8Np-0007Al-4j for submit@debbugs.gnu.org; Fri, 05 Apr 2013 11:16:53 -0400 Received: from eggs.gnu.org ([208.118.235.92]:43209) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UO2lY-0005oz-JM for submit@debbugs.gnu.org; Fri, 05 Apr 2013 05:17:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UO2iI-0007WW-76 for submit@debbugs.gnu.org; Fri, 05 Apr 2013 05:13:45 -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.0 required=5.0 tests=BAYES_40,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:47165) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UO2iI-0007WS-3s for submit@debbugs.gnu.org; Fri, 05 Apr 2013 05:13:38 -0400 Received: from eggs.gnu.org ([208.118.235.92]:54501) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UO2iB-0001ox-MA for bug-coreutils@gnu.org; Fri, 05 Apr 2013 05:13:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UO2i5-0007UA-H2 for bug-coreutils@gnu.org; Fri, 05 Apr 2013 05:13:31 -0400 Received: from mail-ob0-x22a.google.com ([2607:f8b0:4003:c01::22a]:58798) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UO2i5-0007U3-BH for bug-coreutils@gnu.org; Fri, 05 Apr 2013 05:13:25 -0400 Received: by mail-ob0-f170.google.com with SMTP id uy19so1315295obc.15 for ; Fri, 05 Apr 2013 02:13:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:from:date:message-id:subject:to :content-type; bh=u2CN5Qn8moGtdhXfOwNCkpRKK1ycwrjBrx76apOAQ4s=; b=md6yEGqtmAyyQ0CGvpXymA3QqRSgOgRoQhPqTr+S3r2h7xRPncAhWXGSXvp0OOF/eR G6GyQR7HZNIgESv0FoIsGYCOAOHv7DDJZmYueKxVZHxuptyLZxmABNAGQ6ZKqBnSUNL/ s1BYp4My2sBZjLpZlnPE3xuN2s4VuE05+tFgjMCQqccRk1IjXf5+fw+kzXduySqQfuc+ +m4QZeWLuv2iUkkgkZxiuzFw0clwNpA9f1MNq0DyQtm19lCmNHs0TqFwQI+ZenWYnhS/ O/2qXZMO9/F8mPxV/jN4vc0CMWxbR3FyGtBSsLSIwFyiTIS+leAWdI6a1/idMwDSVqMv ktJA== X-Received: by 10.60.35.197 with SMTP id k5mr7232861oej.138.1365153204345; Fri, 05 Apr 2013 02:13:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.81.196 with HTTP; Fri, 5 Apr 2013 02:13:04 -0700 (PDT) From: Ivan Lombardi Borgia Date: Fri, 5 Apr 2013 11:13:04 +0200 Message-ID: Content-Type: multipart/alternative; boundary=089e011847a6cf2bba04d9997f2c X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -3.4 (---) X-Mailman-Approved-At: Fri, 05 Apr 2013 11:16:51 -0400 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.1 (------) --089e011847a6cf2bba04d9997f2c Content-Type: text/plain; charset=ISO-8859-1 Good morning, for the 1th of April 2013 the command *date *has this interesting behaviour: * * *$ date* *Mon Apr 1 00:22:31 CEST 2013* *$ date -d 'yesterday'* *Sat Mar 30 23:22:38 CET 2013* * * As you can read the date is 30 March instead of 31 the time 23:22 instead of 00:22 I could verify that on: - my personal machine running: Linux dip03-ubu 3.2.0-40-generic-pae #64-Ubuntu date --version: date (GNU coreutils) 8.13 - production servers running: Linux ecomappsrv01 2.6.38-8-generic-pae #42-Ubuntu date --version: date (GNU coreutils) 8.5 That doesn't happen for year 2012 and 2014. It happens even using -u option. It does not happen forcing date: *date -d '2013-04-01 00:22:00 1 day ago' * *Sun Mar 31 00:22:00 CET 2013* * * If you need more information just ask and I will try to respond as soon as possible. Thank you, best regards. Ivan Lombardi Borgia --089e011847a6cf2bba04d9997f2c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Good morning,

for the 1th of April 2013 the command date has this interesting beha= viour:

$=A0date
= Mon Apr =A01 00:22:31 CEST 2013
$=A0date -d 'yesterday'
Sat Mar = 30 23:22:38 CET 2013

A= s you can read the date is 30 March instead of 31 the time 23:22 instead of= 00:22

I could verify that on:
  • my personal machine running:
    Linux dip03-ubu 3.2.0-40-ge= neric-pae #64-Ubuntu
    date --version: date (GNU coreutils) 8.13
  • production servers running:
    Linux ecomappsrv01 2.6.38-8-generic-pae #42-= Ubuntu
    date --version: date (GNU coreutils) 8.5
That doesn'= t happen for year 2012 and 2014.
= It happens even using -u option.
It does not happen forcing date= :
date -d '2013-04-01 00:22:00 1 day ago'=A0<= /span>
Sun Mar 31 00:22:00 CET 2013

If you need= more information just ask and I will try to respond as soon as possible.

Thank you, best reg= ards.


<= /div>
Ivan Lombardi Borgia


--089e011847a6cf2bba04d9997f2c-- From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 05 11:27:49 2013 Received: (at control) by debbugs.gnu.org; 5 Apr 2013 15:27:49 +0000 Received: from localhost ([127.0.0.1]:35700 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UO8YO-0007Rf-Pz for submit@debbugs.gnu.org; Fri, 05 Apr 2013 11:27:49 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33622) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UO8YK-0007RQ-MG; Fri, 05 Apr 2013 11:27:46 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r35FOSng028527 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 5 Apr 2013 11:24:28 -0400 Received: from [10.3.113.112] (ovpn-113-112.phx2.redhat.com [10.3.113.112]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id r35FORpU023342; Fri, 5 Apr 2013 11:24:27 -0400 Message-ID: <515EECAB.4090208@redhat.com> Date: Fri, 05 Apr 2013 09:24:27 -0600 From: Eric Blake Organization: Red Hat, Inc. User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130311 Thunderbird/17.0.4 MIME-Version: 1.0 To: Ivan Lombardi Borgia Subject: Re: bug#14146: [date command] Possible bug References: In-Reply-To: X-Enigmail-Version: 1.5.1 OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="----enig2XBSLVFUJXRLEWJJVOMMK" X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 X-Spam-Score: -7.9 (-------) X-Debbugs-Envelope-To: control Cc: 14146-done@debbugs.gnu.org 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: -9.3 (---------) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2XBSLVFUJXRLEWJJVOMMK Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable tag 14146 notabug thanks On 04/05/2013 03:13 AM, Ivan Lombardi Borgia wrote: > Good morning, >=20 > for the 1th of April 2013 the command *date *has this interesting behav= iour: > * > * > *$ date* > *Mon Apr 1 00:22:31 CEST 2013* > *$ date -d 'yesterday'* > *Sat Mar 30 23:22:38 CET 2013* Did you notice the change in the time zone name from CEST to CET, based on daylight savings? > That doesn't happen for year 2012 and 2014. Yeah, because daylight savings in your timezone falls on a different date in those years. > If you need more information just ask and I will try to respond as soon= as > possible. You are hitting a typical usage problem. This is not a bug in date, but in your usage of it; you are failing to account that "yesterday" translates to "24 hours ago", but that 24 hours ago close to midnight when crossing over a 23-hour day (thanks to daylight savings) can cross 2 calendar days. For more information, including the tip to base relative date computation on noon instead of close to midnight, see the FAQ: https://www.gnu.org/software/coreutils/faq/coreutils-faq.html#The-date-co= mmand-is-not-working-right_002e As such, I'm closing this as not a bug, although you may feel free to continue replying if you have further questions. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org ------enig2XBSLVFUJXRLEWJJVOMMK 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.13 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJRXuyrAAoJEKeha0olJ0Nq9J4IAJD3LDuNNS/WGdSaEMlv1YRy 32kmKhDFCnQXWTyl628KFJ6QAXJL8PF7MUs1WBftb16pPIy9vXiF1mf1AM8vT0TS B5IfWg3EbRi/inbblsIVagren/uiu89zKcOri3LmscoUkD4sXlu3jfHDbjzYd3vo vVUXY17EGWxUSwOPBhTdp+TL8RflnFKX9XMEEV2Hc1zyFr3yhYbktaezq4pgqo+d 9thqTAkR29F1lEKcXNo/23cj+3XVRhFGYJz6jVpIPvqPalT68GnAuQwddkEMFmZT gF0eDMSUsTtebMwG5SnfVKx6KcK3Bf6YUWulUOWVaxuR7t7bzlYRdmyi6cXISQg= =pOX9 -----END PGP SIGNATURE----- ------enig2XBSLVFUJXRLEWJJVOMMK-- From unknown Tue Jun 24 20:55:22 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.428 (Entity 5.428) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Ivan Lombardi Borgia Subject: bug#14146: closed (Re: bug#14146: [date command] Possible bug) Message-ID: References: <515EECAB.4090208@redhat.com> X-Gnu-PR-Message: they-closed 14146 X-Gnu-PR-Package: coreutils X-Gnu-PR-Keywords: notabug Reply-To: 14146@debbugs.gnu.org Date: Fri, 05 Apr 2013 15:28:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1365175682-28660-1" This is a multi-part message in MIME format... ------------=_1365175682-28660-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #14146: [date command] Possible bug 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 14146@debbugs.gnu.org. --=20 14146: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D14146 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1365175682-28660-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 14146-done) by debbugs.gnu.org; 5 Apr 2013 15:27:48 +0000 Received: from localhost ([127.0.0.1]:35698 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UO8YN-0007Rc-KM for submit@debbugs.gnu.org; Fri, 05 Apr 2013 11:27:48 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33622) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UO8YK-0007RQ-MG; Fri, 05 Apr 2013 11:27:46 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r35FOSng028527 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 5 Apr 2013 11:24:28 -0400 Received: from [10.3.113.112] (ovpn-113-112.phx2.redhat.com [10.3.113.112]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id r35FORpU023342; Fri, 5 Apr 2013 11:24:27 -0400 Message-ID: <515EECAB.4090208@redhat.com> Date: Fri, 05 Apr 2013 09:24:27 -0600 From: Eric Blake Organization: Red Hat, Inc. User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130311 Thunderbird/17.0.4 MIME-Version: 1.0 To: Ivan Lombardi Borgia Subject: Re: bug#14146: [date command] Possible bug References: In-Reply-To: X-Enigmail-Version: 1.5.1 OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="----enig2XBSLVFUJXRLEWJJVOMMK" X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 X-Spam-Score: -7.9 (-------) X-Debbugs-Envelope-To: 14146-done Cc: 14146-done@debbugs.gnu.org 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: -9.3 (---------) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2XBSLVFUJXRLEWJJVOMMK Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable tag 14146 notabug thanks On 04/05/2013 03:13 AM, Ivan Lombardi Borgia wrote: > Good morning, >=20 > for the 1th of April 2013 the command *date *has this interesting behav= iour: > * > * > *$ date* > *Mon Apr 1 00:22:31 CEST 2013* > *$ date -d 'yesterday'* > *Sat Mar 30 23:22:38 CET 2013* Did you notice the change in the time zone name from CEST to CET, based on daylight savings? > That doesn't happen for year 2012 and 2014. Yeah, because daylight savings in your timezone falls on a different date in those years. > If you need more information just ask and I will try to respond as soon= as > possible. You are hitting a typical usage problem. This is not a bug in date, but in your usage of it; you are failing to account that "yesterday" translates to "24 hours ago", but that 24 hours ago close to midnight when crossing over a 23-hour day (thanks to daylight savings) can cross 2 calendar days. For more information, including the tip to base relative date computation on noon instead of close to midnight, see the FAQ: https://www.gnu.org/software/coreutils/faq/coreutils-faq.html#The-date-co= mmand-is-not-working-right_002e As such, I'm closing this as not a bug, although you may feel free to continue replying if you have further questions. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org ------enig2XBSLVFUJXRLEWJJVOMMK 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.13 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJRXuyrAAoJEKeha0olJ0Nq9J4IAJD3LDuNNS/WGdSaEMlv1YRy 32kmKhDFCnQXWTyl628KFJ6QAXJL8PF7MUs1WBftb16pPIy9vXiF1mf1AM8vT0TS B5IfWg3EbRi/inbblsIVagren/uiu89zKcOri3LmscoUkD4sXlu3jfHDbjzYd3vo vVUXY17EGWxUSwOPBhTdp+TL8RflnFKX9XMEEV2Hc1zyFr3yhYbktaezq4pgqo+d 9thqTAkR29F1lEKcXNo/23cj+3XVRhFGYJz6jVpIPvqPalT68GnAuQwddkEMFmZT gF0eDMSUsTtebMwG5SnfVKx6KcK3Bf6YUWulUOWVaxuR7t7bzlYRdmyi6cXISQg= =pOX9 -----END PGP SIGNATURE----- ------enig2XBSLVFUJXRLEWJJVOMMK-- ------------=_1365175682-28660-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 5 Apr 2013 15:16:53 +0000 Received: from localhost ([127.0.0.1]:35684 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UO8Np-0007Al-4j for submit@debbugs.gnu.org; Fri, 05 Apr 2013 11:16:53 -0400 Received: from eggs.gnu.org ([208.118.235.92]:43209) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UO2lY-0005oz-JM for submit@debbugs.gnu.org; Fri, 05 Apr 2013 05:17:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UO2iI-0007WW-76 for submit@debbugs.gnu.org; Fri, 05 Apr 2013 05:13:45 -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.0 required=5.0 tests=BAYES_40,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:47165) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UO2iI-0007WS-3s for submit@debbugs.gnu.org; Fri, 05 Apr 2013 05:13:38 -0400 Received: from eggs.gnu.org ([208.118.235.92]:54501) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UO2iB-0001ox-MA for bug-coreutils@gnu.org; Fri, 05 Apr 2013 05:13:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UO2i5-0007UA-H2 for bug-coreutils@gnu.org; Fri, 05 Apr 2013 05:13:31 -0400 Received: from mail-ob0-x22a.google.com ([2607:f8b0:4003:c01::22a]:58798) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UO2i5-0007U3-BH for bug-coreutils@gnu.org; Fri, 05 Apr 2013 05:13:25 -0400 Received: by mail-ob0-f170.google.com with SMTP id uy19so1315295obc.15 for ; Fri, 05 Apr 2013 02:13:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:from:date:message-id:subject:to :content-type; bh=u2CN5Qn8moGtdhXfOwNCkpRKK1ycwrjBrx76apOAQ4s=; b=md6yEGqtmAyyQ0CGvpXymA3QqRSgOgRoQhPqTr+S3r2h7xRPncAhWXGSXvp0OOF/eR G6GyQR7HZNIgESv0FoIsGYCOAOHv7DDJZmYueKxVZHxuptyLZxmABNAGQ6ZKqBnSUNL/ s1BYp4My2sBZjLpZlnPE3xuN2s4VuE05+tFgjMCQqccRk1IjXf5+fw+kzXduySqQfuc+ +m4QZeWLuv2iUkkgkZxiuzFw0clwNpA9f1MNq0DyQtm19lCmNHs0TqFwQI+ZenWYnhS/ O/2qXZMO9/F8mPxV/jN4vc0CMWxbR3FyGtBSsLSIwFyiTIS+leAWdI6a1/idMwDSVqMv ktJA== X-Received: by 10.60.35.197 with SMTP id k5mr7232861oej.138.1365153204345; Fri, 05 Apr 2013 02:13:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.81.196 with HTTP; Fri, 5 Apr 2013 02:13:04 -0700 (PDT) From: Ivan Lombardi Borgia Date: Fri, 5 Apr 2013 11:13:04 +0200 Message-ID: Subject: [date command] Possible bug To: bug-coreutils@gnu.org Content-Type: multipart/alternative; boundary=089e011847a6cf2bba04d9997f2c X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -3.4 (---) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 05 Apr 2013 11:16:51 -0400 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.1 (------) --089e011847a6cf2bba04d9997f2c Content-Type: text/plain; charset=ISO-8859-1 Good morning, for the 1th of April 2013 the command *date *has this interesting behaviour: * * *$ date* *Mon Apr 1 00:22:31 CEST 2013* *$ date -d 'yesterday'* *Sat Mar 30 23:22:38 CET 2013* * * As you can read the date is 30 March instead of 31 the time 23:22 instead of 00:22 I could verify that on: - my personal machine running: Linux dip03-ubu 3.2.0-40-generic-pae #64-Ubuntu date --version: date (GNU coreutils) 8.13 - production servers running: Linux ecomappsrv01 2.6.38-8-generic-pae #42-Ubuntu date --version: date (GNU coreutils) 8.5 That doesn't happen for year 2012 and 2014. It happens even using -u option. It does not happen forcing date: *date -d '2013-04-01 00:22:00 1 day ago' * *Sun Mar 31 00:22:00 CET 2013* * * If you need more information just ask and I will try to respond as soon as possible. Thank you, best regards. Ivan Lombardi Borgia --089e011847a6cf2bba04d9997f2c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Good morning,

for the 1th of April 2013 the command date has this interesting beha= viour:

$=A0date
= Mon Apr =A01 00:22:31 CEST 2013
$=A0date -d 'yesterday'
Sat Mar = 30 23:22:38 CET 2013

A= s you can read the date is 30 March instead of 31 the time 23:22 instead of= 00:22

I could verify that on:
  • my personal machine running:
    Linux dip03-ubu 3.2.0-40-ge= neric-pae #64-Ubuntu
    date --version: date (GNU coreutils) 8.13
  • production servers running:
    Linux ecomappsrv01 2.6.38-8-generic-pae #42-= Ubuntu
    date --version: date (GNU coreutils) 8.5
That doesn'= t happen for year 2012 and 2014.
= It happens even using -u option.
It does not happen forcing date= :
date -d '2013-04-01 00:22:00 1 day ago'=A0<= /span>
Sun Mar 31 00:22:00 CET 2013

If you need= more information just ask and I will try to respond as soon as possible.

Thank you, best reg= ards.


<= /div>
Ivan Lombardi Borgia


--089e011847a6cf2bba04d9997f2c-- ------------=_1365175682-28660-1--