Moved a bunch of time functions into UTC. Fixes bugs which we only see for 4 hours...
[rails.git] / app / controllers / amf_controller.rb
index b4cbaeaf02c038f9ac4b162be8f5465d7625c343..e701f21702cf25a4596c8bf3216ece223d0936bb 100644 (file)
@@ -157,7 +157,7 @@ class AmfController < ApplicationController
     cs.tags = cstags
     cs.user_id = user.id
     # smsm1 doesn't like the next two lines and thinks they need to be abstracted to the model more/better
-    cs.created_at = Time.now
+    cs.created_at = Time.now.getutc
     cs.closed_at = cs.created_at + Changeset::IDLE_TIMEOUT
     cs.save_with_tags!
     return [0,cs.id]