Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AMPM format renders lowercase #414

Open
alexmanzo-fundrise opened this issue Aug 22, 2024 · 0 comments
Open

AMPM format renders lowercase #414

alexmanzo-fundrise opened this issue Aug 22, 2024 · 0 comments

Comments

@alexmanzo-fundrise
Copy link
Contributor

The formatting documentation specifies the following formats for times:

* 'ampm'  - 'am'
* 'AMPM'  - 'AM'

However, when attempting to use the AMPM token, it renders lowercase.

// Expected: "August 22, 12:10PM"
 spacetime("2024-08-22T12:10:08.140-04:00").format('{month} {date}, {hour}:{minute-pad}{AMPM}') 
// Received: "August 22, 12:10pm"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants