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

fix: parse unix timestamps #69

Merged
merged 4 commits into from
Aug 19, 2022
Merged

fix: parse unix timestamps #69

merged 4 commits into from
Aug 19, 2022

Conversation

jg-rp
Copy link
Owner

@jg-rp jg-rp commented Aug 19, 2022

The built-in date filter should parse Unix timestamps, given as an integer or string representation of an integer. See #67.

Expected behaviour

{{ 1152098955 | date: '%m/%d/%Y' }}
{{ '1152098955' | date: '%m/%d/%Y' }}

output

07/05/2006
07/05/2006

@jg-rp jg-rp merged commit b6d1d1e into main Aug 19, 2022
@jg-rp jg-rp deleted the timestamps branch September 1, 2022 17:17
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.

1 participant