Skip to content

timezone documentation #98

Description

@mroswell

Is there a way to clarify the documentation (with more examples) on the timezone attribute for date filters? I am currently getting an off-by-a-day issue (while working at 2:52am, in Baltimore, in July). My data source clearly shows that each date value is actually the day following what my template displays.

I am having trouble figuring out how to fix this.

When I try:
{{maxdate | date 'MMMM D, YYYY', 'UTC'}}
or
{{maxdate | date 'MMMM D, YYYY', 'UTC-5'}}
or:
{{maxdate | date 'MMMM D, YYYY', 'America/New York'}}
or
{{maxdate | date 'MMMM D, YYYY', 'America/New_York'}}

I get null values.

But when I do:
{{maxdate | date 'MMMM D, YYYY'}}
I get the wrong date.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions