dbader / schedule

Python job scheduling for humans.
https://schedule.readthedocs.io/
MIT License
11.71k stars 960 forks source link

Wrong documentation with timezone #558

Closed nilansaha closed 1 year ago

nilansaha commented 1 year ago
schedule.every().day.at("12:42", "Europe/Amsterdam").do(job)

This piece of code just does not work. It shows that at excepts two arguments but three were given.

jeremytanjianle commented 1 year ago

The docs are correct. The issue is that the timezone feature is not yet in the stable release.

to install the unstable but latest release with pip, do:

pip uninstall schedule
pip install git+https://github.com/dbader/schedule

Though I havent tested if timezone functions fully works as of yet.

SijmenHuizenga commented 1 year ago

Just now 1.2.0 was released which adds the timezone argument in the .at(). Sorry for the delay!