Skip to content
Discussion options

You must be logged in to vote
Admin verified this answer by BurntSushi May 28, 2026

TL;DR - Use BTTF_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:

$ bttf tz list | xargs -n1 bttf time in now | bttf 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:

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

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

$ BTTF_LOCALE=en-NZ TZ=Pacific/Auckland bttf …

Replies: 2 comments 13 replies

Comment options

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

Answer verified by Admin May 28, 2026
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