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