Moved a bunch of time functions into UTC. Fixes bugs which we only see for 4 hours...
[rails.git] / app / models / node.rb
index 05aae0896847509a6d92c92c8011a54fe7d95808..679048b4e3aa18dc453cde9776410b3b7ba0cb2b 100644 (file)
@@ -267,7 +267,7 @@ class Node < ActiveRecord::Base
   private
 
   def save_with_history!
-    t = Time.now
+    t = Time.now.getutc
     Node.transaction do
       self.version += 1
       self.timestamp = t