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

feat(core): Add support for unix timestamps in datetime parsing #577

Merged
merged 1 commit into from
Feb 4, 2025

Conversation

jesseanttila-cai
Copy link

Adds UNIX timestamp parsing capabilities to the date filter, implemented according to the behavior described in #48 (comment). The main purpose of this feature is to allow basic arithmetic operations on datetime values, e.g. {{ "today" | date: "%s" | minus: 86400 | date: "%Y-%m-%d" }} to display yesterday's date.

  • Tests created for any new feature or regression tests for bugfixes.

@epage
Copy link
Member

epage commented Feb 4, 2025

Thanks!

@epage epage merged commit 76ea276 into cobalt-org:master Feb 4, 2025
14 of 15 checks passed
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