Skip to content

Loading…

It doesn't convert with zones #33

Closed
guillermo opened this Issue · 6 comments

4 participants

@guillermo

every 1.day, :at => "6:30" # Supposed to local time

but as it don't work, i have to do something like:

every 1.day, :at => "#{Time.zone.parse('6:30').getlocal.hour}:30"

@guillermo

The current one, that not depend of ActiveSupport is:
every 1.day, :at => "#{Time.parse('6:30 A').getlocal.strftime("%H:%M")}" do

@javan
Owner

Whenever creates jobs using the time zone of the server it is run on so you need to account for that. I would gladly accept a path to provide custom time zone support, but have no intentions of adding that feature myself currently.

@josephleniston

Is this still the case? If so it would be good to explicitly state this in the docs. It could lead to some confusing problems for people who have a remote server in one time zone and their application.rb configured for a different time zone (like we do).

@twalpole

FYI -- I submitted a pull request that allows the user to specify the time zone that should be used in the schedule.rb file
#239

@josephleniston

@twalpole cool. I think it is an important feature. Hopefully @javan will merge it. As he says above he "would gladly accept a path (sic)".

@javan
Owner

I added a comment to #239 about time zone pain.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.