]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/message_controller.rb
Moved a bunch of time functions into UTC. Fixes bugs which we only see for 4 hours...
[rails.git] / app / controllers / message_controller.rb
index c039fe636e643c1aed4ab1f24cea7fd4978e5e16..a04aa82c0c7959e0b504d2a7f0da211a1fde99b7 100644 (file)
@@ -15,7 +15,7 @@ class MessageController < ApplicationController
       @message = Message.new(params[:message])
       @message.to_user_id = @to_user.id
       @message.from_user_id = @user.id
-      @message.sent_on = Time.now
+      @message.sent_on = Time.now.getutc
    
       if @message.save
         flash[:notice] = 'Message sent'