]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/changeset_controller.rb
Closes #1350 through updating amf_controller to use the newer closed_at method of...
[rails.git] / app / controllers / changeset_controller.rb
index 181c827b35a91e49657db56941c58e318c76507a..ca19fba308f067733822619f95835bb23c03a993 100644 (file)
@@ -56,7 +56,7 @@ class ChangesetController < ApplicationController
     # to close the changeset, we'll just set its closed_at time to
     # now. this might not be enough if there are concurrency issues, 
     # but we'll have to wait and see.
-    changeset.closed_at = DateTime.now
+    changeset.set_closed_time_now
 
     changeset.save!
     render :nothing => true