coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: date (zoneinfo database?) mixes up the AM and the PM for some New Ze


From: Chris Elvidge
Subject: Re: date (zoneinfo database?) mixes up the AM and the PM for some New Zealand locations
Date: Thu, 19 Sep 2024 16:32:08 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 Lightning/5.4

On 19/09/2024 at 14:06, libreville wrote:
Hi there,

I'm on Debian stable. Please observe:

~ $ env TZ=Australia/Brisbane date
Thu Sep 19 11:00:31 PM AEST 2024

~ $ env TZ=Pacific/Auckland date
Fri Sep 20 01:00:35 AM NZST 2024

~ $ env TZ=Pacific/Wellington date
Thu Sep 19 01:00:38 PM Pacific 2024

~ $ env TZ=New\ Zealand/Wellington date
Thu Sep 19 01:00:42 PM New 2024

~ $ env TZ=New\ Zealand/Auckland date
Thu Sep 19 01:00:50 PM New 2024

~ $ env TZ=Australia/Brisbane date
Thu Sep 19 11:00:54 PM AEST 2024

~ $

'env TZ=Pacific/Auckland date' results in an AM time, which is (or was)
correct. The rest of the Auckland and Wellington responses are wrong
though, both the Pacific/ and the New Zealand/ ones.

Best,
liv



"New Zealand" isn't in the timezone list so date doesn't understand it.
Auckland is in Pacific, Wellington isn't in any (AFAICS).
Brisbane is in Australia zone.
See: /usr/share/zoneinfo/ for what is legal.
find /usr/share/zoneinfo -name Wellington (for example).

--
Chris Elvidge
England




reply via email to

[Prev in Thread] Current Thread [Next in Thread]