Skip to content
Discussion options

You must be logged in to vote

TL;DR - Use BIFF_LOCALE=en-NZ-u-hc-h23 instead.


I actually wasn't sure which time zone identifier you were using, because that can impact localization. So I did:

$ biff tz list | xargs -n1 biff time in now | biff time fmt -f '%Q %Z' | rg NZST
Antarctica/McMurdo NZST
Antarctica/South_Pole NZST
NZ NZST
Pacific/Auckland NZST

I'm guessing you're in Pacific/Auckland? Here's a more reliable way to reproduce:

$ BIFF_LOCALE=en-NZ-u-hc-h24 TZ=Pacific/Auckland biff time fmt -f '%c' 2025-05-10T17:30
Sat, 10/05/2025, 5:30:00 pm NZST

$ BIFF_LOCALE=en-NZ-u-hc-h12 TZ=Pacific/Auckland biff time fmt -f '%c' 2025-05-10T17:30
Sat, 10/05/2025, 5:30:00 pm NZST

$ BIFF_LOCALE=en-NZ TZ=Pacific/Auckland biff …

Replies: 2 comments 13 replies

Comment options

You must be logged in to vote
1 reply
@passcod
Comment options

Answer selected by BurntSushi
Comment options

You must be logged in to vote
12 replies
@BurntSushi
Comment options

@robertbastian
Comment options

@BurntSushi
Comment options

@robertbastian
Comment options

@BurntSushi
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants