Skip to content

Commit

Permalink
Use Time.zone.now instead of localtime
Browse files Browse the repository at this point in the history
Use Time.zone.now instead of localtime
  • Loading branch information
Ladas committed Jun 20, 2017
1 parent aa0a6da commit 193dd12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/manager_refresh/save_collection/saver/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def time_now
if ActiveRecord::Base.default_timezone == :utc
Time.now.utc
else
Time.now.localtime
Time.zone.now
end
end

Expand Down

0 comments on commit 193dd12

Please sign in to comment.