R
Railway•10mo ago
markmelnic

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
Percy
Percy•10mo ago
Project ID: N/A
markmelnic
markmelnic•10mo ago
N/A
Brody
Brody•10mo ago
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
markmelnic
markmelnic•10mo ago
Wonderful, so that means I should offset my cron job by 3 hours to get the right time.
Brody
Brody•10mo ago
if that is the offset from UTC to your timezone then yes
markmelnic
markmelnic•10mo ago
Thank you lots!
Brody
Brody•10mo ago
no problem 🙂
.gagry
.gagry•9mo ago
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?
Brody
Brody•9mo ago
railway won't change the timezone, running servers on UTC is standard practice not just for railway
markmelnic
markmelnic•9mo ago
@.gagry you are right but as @Brody mentioned the UTC practice is very unlikely to change.