Closed SijmenHuizenga closed 2 years ago
Configured tox to run all test twice: First without pytz, then with pytz. This makes sure that the library is in perfectly usable without pytz installed. Test-coverage is measured from the tests that do include pytz.
I think this pr is ready to be merged & released, but will leave it open a few days for feedback.
Thank you @chrimaho so much for the review! Super helpful comments :rocket:
Add a timezone parameter to the
.at()
method:During next-job-calculation, the next run is translated from the set timezone into the local timezone so that all jobs are being scheduled in the same timezone.
This implementation of timezone-support is inspired by #471, difference here is that pytz is an optional dependency. Pytz is only required when using timezones. This ensures that people can keep using
schedule
without other dependencies.What do you think? Feedback & Reviews is welcome!