From unknown Fri Jun 20 19:46:11 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#43828 <43828@debbugs.gnu.org> To: bug#43828 <43828@debbugs.gnu.org> Subject: Status: invalid date converting from UTC, near DST Reply-To: bug#43828 <43828@debbugs.gnu.org> Date: Sat, 21 Jun 2025 02:46:11 +0000 retitle 43828 invalid date converting from UTC, near DST reassign 43828 coreutils submitter 43828 "Martin Fido" severity 43828 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 06 10:10:54 2020 Received: (at submit) by debbugs.gnu.org; 6 Oct 2020 14:10:54 +0000 Received: from localhost ([127.0.0.1]:53834 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPng5-00025S-Ez for submit@debbugs.gnu.org; Tue, 06 Oct 2020 10:10:54 -0400 Received: from lists.gnu.org ([209.51.188.17]:52564) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPl55-0003hi-Kb for submit@debbugs.gnu.org; Tue, 06 Oct 2020 07:24:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37074) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kPl55-0007sG-Bu for bug-coreutils@gnu.org; Tue, 06 Oct 2020 07:24:31 -0400 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:51983) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kPl52-0006iP-Nn for bug-coreutils@gnu.org; Tue, 06 Oct 2020 07:24:31 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 4B1BAAD5 for ; Tue, 6 Oct 2020 07:24:25 -0400 (EDT) Received: from imap25 ([10.202.2.75]) by compute1.internal (MEProxy); Tue, 06 Oct 2020 07:24:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fidolab.org; h= mime-version:message-id:date:from:to:subject:content-type; s= fm3; bh=N3LL+Q2IGq8gQafdcotAl5fRUBan3GMYx5FAgLa9XkE=; b=xMQMmozQ 7r2QV8pG4Hc8mUP4MQQIOPSXdiipfAqy6n5VXT/tP9atONsho9kMjuwlrjttxQx1 hSZyaU5yy2tkSt0zjgrx9i5AdxAVn1+7WyueAPlXNjeWft1J/0sVcm0BjRP79Erw iunQpxJJVAGcf1NbKN3UfYGfCu5sgwWn5UYhYEQ2bTiOuZr54HQG7iN1cRApBP7h uv4tZcvTILwgR3h7w54f1VyfJmnHLfv/rLye1PkknXjaMTrEcEk6IJlKZg5gCzKM F/s5LU2nA4M7rsGPJDOdxPq3IeqSbPjq/YSiKefPQrYaU6Fc1rFTMZ86uJoooJDb qBBKLRn8iJIRfQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=N3LL+Q2IGq8gQafdcotAl5fRUBan3 GMYx5FAgLa9XkE=; b=jaBCSrBXdjVQbzxmCZu9XC1vxti5JuNnV3omk4kXNUDGk +Sik1VokAe9wTg/b3oAK/Qfupntswp48hi8O0+YhZZzOdxTYv+zaocx0Gi69u7ft pwfIOEuegDFdXvN0a0RHDBv4vsx6lRnp3dusoX73bhiaJ07Eto7XSyN9JgWFkW25 OngfIx1G1/6NzVk70Jm9PXzjKIjp7chIjmaLRQGgqoK85O2wI9TT8j+yJVZ0+MY6 KZVRKtykJtqN7z0Am0oz9iriyVOyk+JWD2ucqH6rwOlXQScO9Nriy6EatbRWsZan vZHNFYD5hd0dQ3mWSVpnfEXYm/5aOXmLIh5qRkR6A== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrgeeggdeflecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkfffhvffutgesrgdtreerre erjeenucfhrhhomhepfdforghrthhinhcuhfhiughofdcuoehmrghrthesfhhiugholhgr sgdrohhrgheqnecuggftrfgrthhtvghrnhepjefhtdeffedtvddttdelffelvdevlefhud ehgfetkeefheettddvkeetjefhteeinecuffhomhgrihhnpehgnhhurdhorhhgnecuvehl uhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgrrhhtsehfih guohhlrggsrdhorhhg X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 71BD5BC020B; Tue, 6 Oct 2020 07:24:24 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.3.0-407-g461656c-fm-20201004.001-g461656c6 Mime-Version: 1.0 Message-Id: Date: Tue, 06 Oct 2020 22:24:03 +1100 From: "Martin Fido" To: bug-coreutils@gnu.org Subject: invalid date converting from UTC, near DST Content-Type: multipart/alternative; boundary=1614bbf82f75401d9186a10d9cc5afb1 Received-SPF: pass client-ip=64.147.123.19; envelope-from=mart@fidolab.org; helo=wout3-smtp.messagingengine.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/06 07:24:25 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 06 Oct 2020 10:10:50 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -2.6 (--) --1614bbf82f75401d9186a10d9cc5afb1 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, I seem to have found a bug in the date utility, converting from UTC to S= ydney time. It returns invalid date for what should be perfectly valid: $ TZ=3D'Australia/Sydney' date -d '2020-10-04T02:00:00Z' date: invalid date =E2=80=982020-10-04T02:00:00Z=E2=80=99 $ TZ=3D'Australia/Sydney' date -d '2020-10-04T02:59:59Z' date: invalid date =E2=80=982020-10-04T02:59:59Z=E2=80=99 Note DST in Sydney changed 10 hours earlier: $ TZ=3D'Australia/Sydney' date -d '2020-10-03T15:59:59Z' Sunday 4 October 01:59:59 AEST 2020 $ TZ=3D'Australia/Sydney' date -d '2020-10-03T16:00:00Z' Sunday 4 October 03:00:00 AEDT 2020 I have version 8.25: $ date --version date (GNU coreutils) 8.25 Copyright (C) 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later . This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by David MacKenzie. Thanks, Martin. --1614bbf82f75401d9186a10d9cc5afb1 Content-Type: text/html;charset=utf-8 Content-Transfer-Encoding: quoted-printable
Hi,

I seem to have found a bug in the date utility, conver= ting from UTC to Sydney time. It returns invalid date for what should be= perfectly valid:

    $ TZ=3D= 'Australia/Sydney' date -d '2020-10-04T02:00:00Z'
 &n= bsp;  date: invalid date =E2=80=982020-10-04T02:00:00Z=E2=80=99
=

    $ TZ=3D'Australia/Sydney' d= ate -d '2020-10-04T02:59:59Z'
    date: inv= alid date =E2=80=982020-10-04T02:59:59Z=E2=80=99

Note DST in Sydney changed 10 hours earlier:

    $ TZ=3D'Australia/Sydney' date -d '2020-10-03= T15:59:59Z'
    Sunday 4 October  01:5= 9:59 AEST 2020

    $ TZ=3D'A= ustralia/Sydney' date -d '2020-10-03T16:00:00Z'
 &nbs= p;  Sunday 4 October  03:00:00 AEDT 2020

I have version 8.25:

  &n= bsp; $ date --version
    date (GNU coreuti= ls) 8.25
    Copyright (C) 2016 Free Softwa= re Foundation, Inc.
    License GPLv3+: GNU= GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
  &nb= sp; This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent perm= itted by law.

    Written by= David MacKenzie.

Thanks,
Martin.
--1614bbf82f75401d9186a10d9cc5afb1-- From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 06 13:28:17 2020 Received: (at 43828-done) by debbugs.gnu.org; 6 Oct 2020 17:28:17 +0000 Received: from localhost ([127.0.0.1]:54064 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPql7-0002o7-H6 for submit@debbugs.gnu.org; Tue, 06 Oct 2020 13:28:17 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:48510) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPql5-0002nu-BW for 43828-done@debbugs.gnu.org; Tue, 06 Oct 2020 13:28:16 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id E5C27160104; Tue, 6 Oct 2020 10:28:08 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id vd3EQOz9kWt5; Tue, 6 Oct 2020 10:28:07 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id C285D160105; Tue, 6 Oct 2020 10:28:07 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id R0sNX2vfXkgg; Tue, 6 Oct 2020 10:28:07 -0700 (PDT) Received: from [192.168.1.9] (cpe-23-243-218-95.socal.res.rr.com [23.243.218.95]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 9A954160104; Tue, 6 Oct 2020 10:28:07 -0700 (PDT) Subject: Re: bug#43828: invalid date converting from UTC, near DST To: Martin Fido References: From: Paul Eggert Autocrypt: addr=eggert@cs.ucla.edu; prefer-encrypt=mutual; keydata= mQINBEyAcmQBEADAAyH2xoTu7ppG5D3a8FMZEon74dCvc4+q1XA2J2tBy2pwaTqfhpxxdGA9 Jj50UJ3PD4bSUEgN8tLZ0san47l5XTAFLi2456ciSl5m8sKaHlGdt9XmAAtmXqeZVIYX/UFS 96fDzf4xhEmm/y7LbYEPQdUdxu47xA5KhTYp5bltF3WYDz1Ygd7gx07Auwp7iw7eNvnoDTAl KAl8KYDZzbDNCQGEbpY3efZIvPdeI+FWQN4W+kghy+P6au6PrIIhYraeua7XDdb2LS1en3Ss mE3QjqfRqI/A2ue8JMwsvXe/WK38Ezs6x74iTaqI3AFH6ilAhDqpMnd/msSESNFt76DiO1ZK QMr9amVPknjfPmJISqdhgB1DlEdw34sROf6V8mZw0xfqT6PKE46LcFefzs0kbg4GORf8vjG2 Sf1tk5eU8MBiyN/bZ03bKNjNYMpODDQQwuP84kYLkX2wBxxMAhBxwbDVZudzxDZJ1C2VXujC OJVxq2kljBM9ETYuUGqd75AW2LXrLw6+MuIsHFAYAgRr7+KcwDgBAfwhPBYX34nSSiHlmLC+ KaHLeCLF5ZI2vKm3HEeCTtlOg7xZEONgwzL+fdKo+D6SoC8RRxJKs8a3sVfI4t6CnrQzvJbB n6gxdgCu5i29J1QCYrCYvql2UyFPAK+do99/1jOXT4m2836j1wARAQABtCBQYXVsIEVnZ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OPQwxh1jwqSrU5QwoNmSYegQSHLpIUurFz1iQUh1vpPXzKinkWEqv4IqA1ciL+LyySuLkp7M sJpVRMbWJCNWOOSbaH4oDBJ5dHMGc35x5mosCk90PXknuFDDsYHfDo5smf9lo6YXx7N9 Organization: UCLA Computer Science Department Message-ID: Date: Tue, 6 Oct 2020 10:28:07 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 43828-done Cc: 43828-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -3.3 (---) On 10/6/20 4:24 AM, Martin Fido wrote: > I have version 8.25: Seems to have been fixed by coreutils 8.30: $ TZ='Australia/Sydney' date -d '2020-10-04T02:00:00Z' Sun 04 Oct 2020 01:00:00 PM AEDT From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 16 00:30:27 2020 Received: (at 43828) by debbugs.gnu.org; 16 Oct 2020 04:30:27 +0000 Received: from localhost ([127.0.0.1]:57197 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kTHNr-0001cQ-9S for submit@debbugs.gnu.org; Fri, 16 Oct 2020 00:30:27 -0400 Received: from havoc.proulx.com ([96.88.95.61]:58418) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kTHNp-0001V4-0k for 43828@debbugs.gnu.org; Fri, 16 Oct 2020 00:30:25 -0400 Received: from joseki.proulx.com (localhost [127.0.0.1]) by havoc.proulx.com (Postfix) with ESMTP id 5AE424F0; Thu, 15 Oct 2020 22:30:19 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proulx.com; s=dkim2048; t=1602822619; bh=ygvpStqeXq3D04d/0T9nHyt8ebpFWnaBebnQhg/F5E4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=eS4RX8uh5FCIkNhPPryMtLthDLLuJnnry15wPV3spovGuf6w98i3ye5BVuZOFUpsa DeMcz95R5NsKL6WzUTiKyzvxpYH/TJRSLsb3ugfGIP9VFqnZmYccF9XkskUFNH4Bw1 Kg26ppCU4OyUvIJaDRy4jFnnrc8HYuVh24gkJd7XU6AC0Zv0QqXSv5iliAjdCM4Id3 U8w7R3Eq8rx5Mxv3JK7E18pJQz9qw9vhAF/LWR3GvCAygFRx8n+Xsq9a7gkDA+atx3 GhARtrWekhazPidKiHQ5Np7oZaRFA0QTobEnwwV/F4dvTG0SL9BFsymgMw1iYn1YSl s2l1kcA9iFFyg== Received: from hysteria.proulx.com (hysteria.proulx.com [192.168.230.119]) by joseki.proulx.com (Postfix) with ESMTP id 1E31A2115F; Thu, 15 Oct 2020 22:30:19 -0600 (MDT) Received: by hysteria.proulx.com (Postfix, from userid 1000) id 8F77B2DC9D; Thu, 15 Oct 2020 22:30:17 -0600 (MDT) Date: Thu, 15 Oct 2020 22:30:17 -0600 From: Bob Proulx To: Martin Fido Subject: Re: bug#43828: invalid date converting from UTC, near DST Message-ID: <20201015222131454094067@bob.proulx.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 43828 Cc: 43828@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -1.0 (-) Martin Fido wrote: > I seem to have found a bug in the date utility, converting from UTC > to Sydney time. It returns invalid date for what should be perfectly > valid: > > $ TZ='Australia/Sydney' date -d '2020-10-04T02:00:00Z' > date: invalid date ā€˜2020-10-04T02:00:00Z’ > > $ TZ='Australia/Sydney' date -d '2020-10-04T02:59:59Z' > date: invalid date ā€˜2020-10-04T02:59:59Z’ This is more likely to be in the tzdata zoneinfo database rather than in date itself. Could you please report what version of tzdata you have on your system? Current on my system is tzdata version 2020b-1. And also this information too. $ zdump -v Australia/Sydney | grep 2020 Australia/Sydney Sat Apr 4 15:59:59 2020 UT = Sun Apr 5 02:59:59 2020 AEDT isdst=1 gmtoff=39600 Australia/Sydney Sat Apr 4 16:00:00 2020 UT = Sun Apr 5 02:00:00 2020 AEST isdst=0 gmtoff=36000 Australia/Sydney Sat Oct 3 15:59:59 2020 UT = Sun Oct 4 01:59:59 2020 AEST isdst=0 gmtoff=36000 Australia/Sydney Sat Oct 3 16:00:00 2020 UT = Sun Oct 4 03:00:00 2020 AEDT isdst=1 gmtoff=39600 > Note DST in Sydney changed 10 hours earlier: > > $ TZ='Australia/Sydney' date -d '2020-10-03T15:59:59Z' > Sunday 4 October 01:59:59 AEST 2020 > > $ TZ='Australia/Sydney' date -d '2020-10-03T16:00:00Z' > Sunday 4 October 03:00:00 AEDT 2020 Yes. And I think that is suspicious. Hopefully the zdump information will show that database is in need of an update and that is the root of the problem. I suspect that DST was moved at some point in time. > I have version 8.25: > > $ date --version > date (GNU coreutils) 8.25 I tried this on 8.13, 8.23, 8.26, and 8.32 and was unable to reproduce the problem on any of those versions of date. But I suspect the root cause is in the tzdata zoneinfo database. Bob From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 16 03:14:01 2020 Received: (at 43828) by debbugs.gnu.org; 16 Oct 2020 07:14:02 +0000 Received: from localhost ([127.0.0.1]:57459 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kTJw9-0007sc-DK for submit@debbugs.gnu.org; Fri, 16 Oct 2020 03:14:01 -0400 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:41407) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kTInZ-0003id-Bh for 43828@debbugs.gnu.org; Fri, 16 Oct 2020 02:01:07 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 540B82FF; Fri, 16 Oct 2020 02:00:59 -0400 (EDT) Received: from imap25 ([10.202.2.75]) by compute1.internal (MEProxy); Fri, 16 Oct 2020 02:00:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fidolab.org; h= mime-version:message-id:in-reply-to:references:date:from:to:cc :subject:content-type; s=fm3; bh=3goJM5A5fjP9DmYfvxApLk418Bgocyl epEK9B7HFINQ=; b=tfvXhjlrTNRKyjoRJrl+G6ucdov6r/Ed6MfWBmyuNvj1h2Q 2dkRJ2HxDl5YXjoA4hV2pKmZQoUaftpdHqaKCNvTMcYxJPEusbqnBywvTA6EOBAU tpEw/oTDhHqPsncS7Y1neRSPchk0KOZ7DPn2b7xP5n0QpmgVsdRw5tdMiYSu8kFc JxwdhJKXB/fR67Ab5gmnGEuamp6pO3ZnkcCcXBbMa3DKGTGrVHB5/2f8PSWVa9c8 MRTzdrOeUCgZjG9PsgtsCpby/KTtun2AdtCdkWeLcL6JCLxtPGH+QSXgodKPNsvv YcQ9qQjK1agHVmMmZlHAfBR5SzqRwVqJKSix9FQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=3goJM5 A5fjP9DmYfvxApLk418BgocylepEK9B7HFINQ=; b=kbNvdTqTMCB5zgWSLc8km+ 6gtxnSA2hbQT0YvuqBf9Bhau7BR/pzeRWrEEwmMsBH3PAkPnTDr/HV6VviC+oNhR Tiot2hjVNUTZITo3fCphZAQJmzTB0MKYUo3C+EWV4iZZBP+DXgsgyApK7PuVyqN/ DIEjU43lOxWKvrT2Q6IVOlwACIDISTuoU6k6VxWLv5Xy0Gb1IsLbv5BBjZ2G2FZP PuDCNIPAZBQ0Ag/Ji4XQuPrxLlu55EQgRX0jDjKI1kmyojRF6pOF3SOJ914Ix6Gc 6kyBdibwW03JL48wfsh5yAgKWJz5rPtAgNMSvSQLmsjm8EHOVkL7dKH9zkMG6idw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrieeggddutddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvufgtsehttd ertderredtnecuhfhrohhmpedfofgrrhhtihhnucfhihguohdfuceomhgrrhhtsehfihgu ohhlrggsrdhorhhgqeenucggtffrrghtthgvrhhnpefhtddtgeffheetfedtveeujeejff fftddvudetudefjeejleeuveelkedthfdvheenucevlhhushhtvghrufhiiigvpedtnecu rfgrrhgrmhepmhgrihhlfhhrohhmpehmrghrthesfhhiugholhgrsgdrohhrgh X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 66122BC00F7; Fri, 16 Oct 2020 02:00:58 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.3.0-489-gf39678d-fm-20201011.001-gf39678d0 Mime-Version: 1.0 Message-Id: <6660001e-dd7d-40f3-9a8a-60288ad21e89@www.fastmail.com> In-Reply-To: <20201015222131454094067@bob.proulx.com> References: <20201015222131454094067@bob.proulx.com> Date: Fri, 16 Oct 2020 17:00:22 +1100 From: "Martin Fido" To: "Bob Proulx" Subject: Re: bug#43828: invalid date converting from UTC, near DST Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 43828 X-Mailman-Approved-At: Fri, 16 Oct 2020 03:13:59 -0400 Cc: 43828@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -1.7 (-) I have tzdata version 2020a: $ apt-cache policy tzdata tzdata: Installed: 2020a-0ubuntu0.16.04 Candidate: 2020a-0ubuntu0.16.04 ... $ zdump -v Australia/Sydney | grep 2020 Australia/Sydney Sat Apr 4 15:59:59 2020 UT = Sun Apr 5 02:59:59 2020 AEDT isdst=1 gmtoff=39600 Australia/Sydney Sat Apr 4 16:00:00 2020 UT = Sun Apr 5 02:00:00 2020 AEST isdst=0 gmtoff=36000 Australia/Sydney Sat Oct 3 15:59:59 2020 UT = Sun Oct 4 01:59:59 2020 AEST isdst=0 gmtoff=36000 Australia/Sydney Sat Oct 3 16:00:00 2020 UT = Sun Oct 4 03:00:00 2020 AEDT isdst=1 gmtoff=39600 From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 29 01:10:49 2020 Received: (at 43828) by debbugs.gnu.org; 29 Oct 2020 05:10:49 +0000 Received: from localhost ([127.0.0.1]:51535 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kY0D3-00007i-I3 for submit@debbugs.gnu.org; Thu, 29 Oct 2020 01:10:49 -0400 Received: from havoc.proulx.com ([96.88.95.61]:54850) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kY0D1-00006E-Gp for 43828@debbugs.gnu.org; Thu, 29 Oct 2020 01:10:47 -0400 Received: from joseki.proulx.com (localhost [127.0.0.1]) by havoc.proulx.com (Postfix) with ESMTP id E90303AD; Wed, 28 Oct 2020 23:10:41 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proulx.com; s=dkim2048; t=1603948241; bh=rSF+PDhqYBWg5b42IooiYPbtuK9ZsFZgmkPHDtdQDg0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DufxqD1hGcLzh2LyuLJgBw/wXWpxqkCN+OgfXkjK4YCMIQp3FkFFz5Q9gpWt4AmeA zYO2sTB4EgY/IWc8+a+8AJJJ65UP7jRhfrMilhCey6SXspPo6/x2h03TDp/4kqNZxN /Z4x2EG2aVL0wNV6ihfP41PTE3NlCYTbcxxRXn8Kn/QhwcujjehLdAThOEMX3CQ8Um jwFUKL4gTIwv3aE1NnS2TAFArFZE4VR7Lr+f457WP4FSnllevtpGbQxk435qJDIBGE eXULVqDptovGZyFubfoAVlsot1aI8R4owtzfHPVe0yzC40Mx2Ng/2j+O+jwhcrZv8r Ql9PfEo+U664Q== Received: from hysteria.proulx.com (hysteria.proulx.com [192.168.230.119]) by joseki.proulx.com (Postfix) with ESMTP id BE45621156; Wed, 28 Oct 2020 23:10:41 -0600 (MDT) Received: by hysteria.proulx.com (Postfix, from userid 1000) id B1F662DC9E; Wed, 28 Oct 2020 23:10:39 -0600 (MDT) Date: Wed, 28 Oct 2020 23:10:39 -0600 From: Bob Proulx To: Martin Fido Subject: Re: bug#43828: invalid date converting from UTC, near DST Message-ID: <20201028225132880769521@bob.proulx.com> References: <20201015222131454094067@bob.proulx.com> <6660001e-dd7d-40f3-9a8a-60288ad21e89@www.fastmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6660001e-dd7d-40f3-9a8a-60288ad21e89@www.fastmail.com> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 43828 Cc: 43828@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -1.0 (-) Martin Fido wrote: > I have tzdata version 2020a: > > $ apt-cache policy tzdata > tzdata: > Installed: 2020a-0ubuntu0.16.04 > Candidate: 2020a-0ubuntu0.16.04 > ... > > $ zdump -v Australia/Sydney | grep 2020 > Australia/Sydney Sat Apr 4 15:59:59 2020 UT = Sun Apr 5 02:59:59 2020 AEDT isdst=1 gmtoff=39600 > Australia/Sydney Sat Apr 4 16:00:00 2020 UT = Sun Apr 5 02:00:00 2020 AEST isdst=0 gmtoff=36000 > Australia/Sydney Sat Oct 3 15:59:59 2020 UT = Sun Oct 4 01:59:59 2020 AEST isdst=0 gmtoff=36000 > Australia/Sydney Sat Oct 3 16:00:00 2020 UT = Sun Oct 4 03:00:00 2020 AEDT isdst=1 gmtoff=39600 I see this is Ubuntu 16.04. I found a 16.04 system and I was able to recreate this exact problem there. However trying this on an 18.04 system and it is no longer an invalid date. Bob From unknown Fri Jun 20 19:46:11 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 Nov 2020 12:24:04 +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