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 merge tags {now} {today} {yesterday} #1978

Open
4 tasks
tobifjellner opened this issue Feb 1, 2024 · 0 comments · May be fixed by #2143
Open
4 tasks

Add merge tags {now} {today} {yesterday} #1978

tobifjellner opened this issue Feb 1, 2024 · 0 comments · May be fixed by #2143
Assignees

Comments

@tobifjellner
Copy link

tobifjellner commented Feb 1, 2024

By adding merge tags {now} and {yesterday}, we make it possible to use [gvlogic] to check for expiration, distinguish between past and future events, etc.

  • {today} exists: it's the current date in the site's timezone. Please ensure that it works.

Add:

  • {now} a timestamp in local timezone
  • {yesterday}: {today} -1 day
  • Support :format Merge Tag modifiers for {now}, {today}, and {yesterday}
  • Unit tests for this functionality

Re: https://docs.gravitykit.com/article/446-highlighting-entries-about-to-expire

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants