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:
commit
dbb6c851cf
2 changed files with 7 additions and 1 deletions
|
@ -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
|
0.6.3
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
|
|
@ -57,7 +57,7 @@ module Sidetiq
|
||||||
#
|
#
|
||||||
# Returns a Time instance.
|
# Returns a Time instance.
|
||||||
def gettime
|
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
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue