Skip to content

Commit

Permalink
Update README to reflect reading Rails timezone
Browse files Browse the repository at this point in the history
It appears that rufus-scheduler version 3.3.3 [uses the Rails timezone](jmettraux/rufus-scheduler@dc9e9df) if Rails is detected. [This commit](4b7eb81) bumps the version of rufus-scheduler, allowing it to upgrade to 3.3.x, which includes the change.

This change modifies the README regarding cron syntax, to indicate that the current version of sidekiq_scheduler does use the Rails timezone when parsing cron statements.
  • Loading branch information
taylorkearns committed Aug 11, 2020
1 parent 41990aa commit 5703692
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,9 @@ Sidekiq.get_schedule

## Time zones

Note that if you use the cron syntax, this will be interpreted as in the server time zone
rather than the `config.time_zone` specified in Rails.
Note that if you use the cron syntax and are not running a Rails app, this will be interpreted in the server time zone.

In a Rails app, [rufus-scheduler](https://github.com/jmettraux/rufus-scheduler) (>= 3.3.3) will use the `config.time_zone` specified in Rails.

You can explicitly specify the time zone that rufus-scheduler will use:

Expand Down

0 comments on commit 5703692

Please sign in to comment.