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