1
0
Fork 0
mirror of https://github.com/endofunky/sidetiq.git synced 2022-11-09 13:53:30 -05:00

Respect configured timezone in rails apps

This commit is contained in:
Alex Weidmann 2015-04-04 18:56:43 -06:00
parent 3d78df3738
commit 914a54e92d
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
0.6.4
-----
- Use Time.current instead of Time.now in rails apps to
respect configured timezone [effektz]
0.6.3
-----

View file

@ -57,7 +57,7 @@ module Sidetiq
#
# Returns a Time instance.
def gettime
Sidetiq.config.utc ? Time.now.utc : Time.now
Sidetiq.config.utc ? Time.now.utc : (Time.respond_to?(:current) ? Time.current : Time.now)
end
end
end