Tivix / django-cron

Write cron business logic as a Python class and let this app do the rest! It enables Django projects to schedule cron tasks, tracks their success / failures, manages contention (via a cache) etc. Basically takes care of all the boring work for you :-)
www.tivix.com
MIT License
900 stars 193 forks source link

Base models from the lib are not using the correct timezone #248

Closed faisstzera closed 4 months ago

faisstzera commented 4 months ago

Basically, I noticed that the time registered from my cronjobs is using another timezone.

I have all of the TZ configurations in my settings.py, but when I run python manage.py runcrons --force, the start and end time are both in a different timezone. Also, the ran_at_time column is always null, it doesn't update even after it runs.

Anyone knows how to fix this?