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

Review how we're printing dates across LGD #285

Open
msayoung opened this issue Sep 27, 2022 · 1 comment
Open

Review how we're printing dates across LGD #285

msayoung opened this issue Sep 27, 2022 · 1 comment
Assignees

Comments

@msayoung
Copy link
Member

msayoung commented Sep 27, 2022

@markconroy can you give details on what we need to do on this?

@markconroy
Copy link
Member

We need to check anywhere we are printing dates in templates like this {{ node.field_date.value }} and try to print it using {{ content.field_date }} or some other mechanism that will not give us "out by one hour" errors during daylight saying time.

Using {{ content.field_date }} means Drupal does all the heavy lifting for us, but {{ node.field_date.value|date("U") }} (or something like that might be enough

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

2 participants