Skip to content

Added optional timezone string to StandardFilters::date() - #241

Merged
sanmai merged 4 commits into
kalimatas:masterfrom
fulstadev:feat/added-timezone-support-for-date-standard-filter
Oct 26, 2026
Merged

sanmai merged 4 commits into
kalimatas:masterfrom
fulstadev:feat/added-timezone-support-for-date-standard-filter

Conversation

@fulstadev

@fulstadev fulstadev commented Oct 22, 2026 •

Copy link
Copy Markdown

Inspired by the usage of https://liquidjs.com/filters/date.html#TimeZone and liquid within marketing automation systems.

The optional specification of a IANA timezone identifier for the | date filter is essential e.g. in e-mail templates containing liquid which require you to forward date / time data in the timezone of the e-mail recipient.

Using an IANA timezone identifier also ensures that daylight saving time is handled automatically, which is not the case if you specify the "hardcoded" offset via the %z format directive.

Felt like this was missing in this package.

@sanmai sanmai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea. Would you rather wrap it with unit tests, or would you prefer for someone to take over?

@sanmai
sanmai merged commit cf7839e into kalimatas:master Oct 26, 2026
6 checks passed
@fulstadev

Copy link
Copy Markdown
Author

Apologies @sanmai for the delayed response, was somewhat busy these days ! Thanks for the update !

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

Successfully merging this pull request may close these issues.

2 participants