X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/c8ee1351049ef1bb4d7b50d071b2a96154266d1d..afcb345014d98914cd4f5d6b14ca2e30feac194c:/app/controllers/trace_controller.rb diff --git a/app/controllers/trace_controller.rb b/app/controllers/trace_controller.rb index 6528dffde..c0a0b36b5 100644 --- a/app/controllers/trace_controller.rb +++ b/app/controllers/trace_controller.rb @@ -117,7 +117,7 @@ class TraceController < ApplicationController :description => params[:trace][:description], :public => params[:trace][:public], :inserted => false, :user => @user, - :timestamp => Time.now}) + :timestamp => Time.now.getutc}) @trace.valid? @trace.errors.add(:gpx_file, "can't be blank") end @@ -313,7 +313,7 @@ private :description => description, :public => public}) @trace.inserted = false @trace.user = @user - @trace.timestamp = Time.now + @trace.timestamp = Time.now.getutc if @trace.save FileUtils.mv(filename, @trace.trace_name)