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

Merge pull request #131 from effektz/master

Respect configured timezone in rails apps
This commit is contained in:
Tobias Svensson 2016-02-04 07:17:44 +00:00
commit dbb6c851cf
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