Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add shim for date filter #98

Merged
merged 6 commits into from
Jul 2, 2024
Merged

Add shim for date filter #98

merged 6 commits into from
Jul 2, 2024

Conversation

markstory
Copy link
Member

Handle Date values so that we maintain compatibility with twig
templates and date objects.

Fixes #97

Handle Date values so that we maintain compatibility with twig
templates and date objects.

Fixes #97
@markstory markstory added this to the 2.x milestone Jun 30, 2024
the formatDate function was a global function, and a static method in
previous points in time. This might not be the most stable API to couple
to, but we'll see how it goes. The alternative would be to duplicate the
twig filter code into our extensions.
@markstory markstory merged commit 2bda8f7 into 2.x Jul 2, 2024
5 checks passed
@markstory markstory deleted the fix-97 branch July 2, 2024 20:42
@othercorey
Copy link
Member

Thanks!

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.

Twig returns error when doing a date filter on a Cake\I18n\Date
2 participants