It doesn't convert with zones #33

Closed
guillermo opened this Issue Oct 30, 2009 · 6 comments

Comments

Projects
None yet
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

This comment has been minimized.

Show comment
Hide comment
@guillermo

guillermo Oct 30, 2009

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

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

@javan

This comment has been minimized.

Show comment
Hide comment
@javan

javan Oct 30, 2009

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.

Owner

javan commented Oct 30, 2009

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

This comment has been minimized.

Show comment
Hide comment
@josephleniston

josephleniston Aug 8, 2012

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

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

This comment has been minimized.

Show comment
Hide comment
@twalpole

twalpole Aug 8, 2012

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

twalpole commented Aug 8, 2012

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

This comment has been minimized.

Show comment
Hide comment
@josephleniston

josephleniston Aug 8, 2012

@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)".

@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

This comment has been minimized.

Show comment
Hide comment
@javan

javan Aug 8, 2012

Owner

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

Owner

javan commented Aug 8, 2012

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