dgtlmoon / changedetection.io

The best and simplest free open source web page change detection, website watcher, restock monitor and notification service. Restock Monitor, change detection. Designed for simplicity - Simply monitor which websites had a text change for free. Free Open source web page change detection, Website defacement monitoring, Price change notification
https://changedetection.io
Apache License 2.0
15.93k stars 886 forks source link

jinja2-time offsets not working #1493

Open pschoenmakers opened 1 year ago

pschoenmakers commented 1 year ago

It's not possible to use time offsets currently. I tested with this example from: https://pypi.org/project/jinja2-time/

{% now 'utc' - 'minutes=11' %}

This gives an error Invalid template syntax when trying to save a watch.

pschoenmakers commented 1 year ago

Might be because of this upstream bug: https://github.com/hackebrot/jinja2-time/issues/18

dgtlmoon commented 1 year ago

Super interesting, can you reproduce it somehow using the command line?

pschoenmakers commented 1 year ago

I am not really sure what to test here exactly?

x0tester0x commented 7 months ago

I think the jinja2-time Project is abandoned. The last commit was in 2021... please consider here to use an alternative.

dgtlmoon commented 7 months ago

I think the jinja2-time Project is abandoned. The last commit was in 2021... please consider here to use an alternative.

@x0tester0x and do you have an alternative? can you recommend an alternative?

x0tester0x commented 7 months ago

@dgtlmoon Arrow is an alternative, which is also already used toegether with jinja2-time (https://github.com/arrow-py/arrow) There is also https://github.com/sdispater/pendulum and https://github.com/dateutil/dateutil

randshell commented 2 months ago

Are there any updates on replacing jinja2-time?