Jinja2 Time Offset #2810
Answered
by
ta7tUHIJHx4RwR21
ta7tUHIJHx4RwR21
asked this question in
Q&A
-
I'm trying to get 90 days from current day in the URL. I try: {% now 'utc' + 'days=90', '%Y-%m-%d' %} but I get an "Invalid template syntax: Unknown attribute: 'days'." error. Any help? |
Beta Was this translation helpful? Give feedback.
Answered by
ta7tUHIJHx4RwR21
Dec 3, 2024
Replies: 2 comments 4 replies
-
It should be did that work? |
Beta Was this translation helpful? Give feedback.
3 replies
-
hmm the package updated the source but didnt release a new version ? is that whats happened? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
changed line 69 in requirements file in 47.06 to:
jinja2-time @ https://github.com/igorolhovskiy/jinja2-time/archive/refs/heads/main.zip
Now {% now 'utc' + 'days=90', '%Y-%m-%d' %} works correctly.