Skip to content

setting timezone for specific template #553

@amit777

Description

@amit777

Hi, we have a need to be able to set the timezone for the date filter defined here: https://liquidjs.com/filters/date.html

Is it possible to update the date filter to have an optional second parameter of the timezone?

eg: {{ article.published_at | date: "%a, %b %d, %y":"America/Los_Angeles" }}

I didn't quite understand the note in the documentation about how to set the timezon in liquid options.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions