Forums

Timezone for Tasks

Hello all,

Unfortunately the server is on the UTC timezone. However I have a code that I want to run every day at 11 PM in Germany (TZ = Europe/Berlin). Is there any way to solve this issue? So to always run the code 11 PM Berlin Time regardless of summer or winter?

BR,

The timezone for when tasks run is fixed to UTC. If you want to set the timezone that your code sees, see https://help.pythonanywhere.com/pages/SettingTheTimezone/

I know I can change the timezone in the code but I need to change it outside somehow because that determines when the code runs..

That is not possible.