cron job timezone
Greetings! I want to host a script which runs at a certain time relative to my time zone (GMT+3). When scheduling I realized I should offset the schedule to adapt for railway servers location. So my question here is, what would the offset be for me. I saw in the help section that the time zone should be US-West, but when scheduling the preview (ex. will run in 5 hours) is different from what I expected, so I guess I'm wrong somewhere. Thanks in advance!
P.S. I'm rather new to the community, so excuse my lack of familiarity with the project, yet )
10 Replies
Project ID:
N/A
N/A
even though railways only current region is us-west1, the cron jobs run at UTC time, the deployments are also set to UTC, this is standard for all servers in any region
Wonderful, so that means I should offset my cron job by 3 hours to get the right time.
if that is the offset from UTC to your timezone then yes
Thank you lots!
no problem 🙂
one question @Brody , what if Railway changes the server timezona? in this case, the solution @markmelnic will take, will get the wrong time, am I right?
railway won't change the timezone, running servers on UTC is standard practice not just for railway
@.gagry you are right but as @Brody mentioned the UTC practice is very unlikely to change.