]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/amf_controller.rb
Fix rubocop issue
[rails.git] / app / controllers / amf_controller.rb
index 5181280d9410eff5c9b2eb6fe06a7fefd5b2f98f..4c24a1cec79ecf16e9a2580aec40ac8c4fbfe35d 100644 (file)
@@ -375,7 +375,7 @@ class AmfController < ApplicationController
       else
         begin
           # revert
       else
         begin
           # revert
-          timestamp = Time.strptime(timestamp.to_s, "%d %b %Y, %H:%M:%S")
+          timestamp = Time.zone.strptime(timestamp.to_s, "%d %b %Y, %H:%M:%S")
           old_way = OldWay.where("way_id = ? AND timestamp <= ?", id, timestamp).unredacted.order("timestamp DESC").first
           unless old_way.nil?
             if old_way.visible
           old_way = OldWay.where("way_id = ? AND timestamp <= ?", id, timestamp).unredacted.order("timestamp DESC").first
           unless old_way.nil?
             if old_way.visible