tobymao / saq

Simple Async Queues
https://saq-py.readthedocs.io/en/latest/
MIT License
532 stars 37 forks source link

cronjob is not respecting current timezone #106

Closed tiejunhu closed 9 months ago

tiejunhu commented 9 months ago

It's scheduled based on EPOCH, as the croniter is called without any timezone information. Maybe add a timezone attribute to CronJob class and use it to create datetime.datetime instance to call crontier?

tobymao commented 9 months ago

this is intentional, convert your local times to epoch