tobymao / saq

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

cronjob is not respecting current timezone #106

Closed tiejunhu closed 11 months ago

tiejunhu commented 11 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 11 months ago

this is intentional, convert your local times to epoch