X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/8140c993139247fb13e3827b30851d0b774c0f32..afcb345014d98914cd4f5d6b14ca2e30feac194c:/app/models/relation.rb?ds=sidebyside diff --git a/app/models/relation.rb b/app/models/relation.rb index 4b5d9e32b..a8789bc78 100644 --- a/app/models/relation.rb +++ b/app/models/relation.rb @@ -51,7 +51,7 @@ class Relation < ActiveRecord::Base # The follow block does not need to be executed because they are dealt with # in create_with_history, update_from and delete_with_history if create - relation.timestamp = Time.now + relation.timestamp = Time.now.getutc relation.visible = true relation.version = 0 else @@ -334,7 +334,7 @@ class Relation < ActiveRecord::Base # changed then we have to monitor their before and after state. tags_changed = false - t = Time.now + t = Time.now.getutc self.version += 1 self.timestamp = t self.save!