Skip to content

timezone documentation #98

@mroswell

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions