]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/relation.rb
Fix rubocop Rails/TimeZone warnings
[rails.git] / app / models / relation.rb
index 0adf1012d67e1b03f00595c44c06c317cd7ada45..021082eda01243b73f93320e5e0624876c7b73ae 100644 (file)
@@ -263,7 +263,7 @@ class Relation < ApplicationRecord
   private
 
   def save_with_history!
-    t = Time.now.getutc
+    t = Time.now.utc
 
     self.version += 1
     self.timestamp = t