whenever icon indicating copy to clipboard operation
whenever copied to clipboard

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

Open hopy11 opened this issue 2 years ago • 1 comments

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 ;)

hopy11 avatar Sep 20 '22 09:09 hopy11

@hopy11 If you haven't, take a look at https://github.com/javan/whenever/issues/826

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

pnomolos avatar Apr 10 '23 23:04 pnomolos