dgtlmoon/changedetection.io

Jinja 2 time offset returns Invalid template syntax

Closed this issue · 1 comments

Describe the bug
While using jinja variables, the time offset interface returns a syntax error

Version
0.46.02

To Reproduce
Try watching a url with a time offset:
https://hamletdufromage.github.io/unix-to-tz/?timestamp={% now 'utc', '%s' %} works
https://hamletdufromage.github.io/unix-to-tz/?timestamp={% now 'utc' - 'minutes=11', '%s' %} doesn't (Invalid template syntax)

Expected behavior
Time offsets should work as described in https://pypi.org/project/jinja2-time/

Screenshots
image

Desktop (please complete the following information):

  • OS: GNU/Linux
  • Browser Firefox
  • Version 129.0.1

Additional context
N/A

Ah my bad, I didn't see an issue was already open #1493