Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set the daily time as the time of a certain time zone, thank you #826

Open
hopy11 opened this issue Sep 20, 2022 · 1 comment
Open

Comments

@hopy11
Copy link

hopy11 commented Sep 20, 2022

every 1.day, at: '3:00' do
  runner "MyModel.nightly_archive_job"
   end

The 3:00 above is UTC time, right? What if I want to set 3:00 every day in Beijing, China time zone? How can I write time expressions? I wrote "at: '3:00 +0800'" like this, but it didn't work.

Thanks ;)

@pnomolos
Copy link

@hopy11 If you haven't, take a look at #826

Unfortunately due to DST and other weirdness there's a lot more that goes into this than simply specifying the timezone :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants