Skip to content

Potential bug/documentation bug with date time displace #159

@edalzell

Description

@edalzell
Image

BTW, we've noticed a small issue with the Events documentation. You have an example events loop, but it does not properly display the times in Statamic 6. It needs to account for the timezones. Something like...

{{ events:upcoming limit="5" }}
  {{ title }} - {{ start | timezone(timezone) | format("n/j/Y g:i A T") }}
{{ /events:upcoming }}

...seems to do the trick. I'm not quite sure why just adding the timezone modifier without a format modifier does not show the dates in the correct timezone, but we found it only worked with both.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions