javan / javan/whenever

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

Open
#826 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Ruby
Stars
8.9k
Forks
715
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue only identifies a daily every 1.day schedule and an at: '3:00' expression; it names no files or tests. Start by checking the project's documentation and time-expression entry points for timezone guidance. Done means the supported way to express 3:00 in Beijing time is clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.