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

Carbone formatD() formatter using wrong timezone #106

Open
TimCsaky opened this issue Feb 13, 2024 · 0 comments
Open

Carbone formatD() formatter using wrong timezone #106

TimCsaky opened this issue Feb 13, 2024 · 0 comments

Comments

@TimCsaky
Copy link
Contributor

A client recently found the formatD() formatter is not converting a date object into the correct readable string format.

const 'myBirthday': '2024-01-30T14:43:00'

// in template:
{d.myMirthday:formatD("MM/DD/YYY HH:mm')} // renders as `01/20/2024 15:43`

an hour is being added to the time.

possible fix is to set the timezone when starting carbone


see: https://carbone.io/documentation.html#date-manipulation

@jujaga jujaga changed the title Carbone formaD() formatter using wrong timezone Carbone formatD() formatter using wrong timezone Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant