Hi,
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-
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
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='Aus
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=
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