]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/api_controller.rb
Fix statistics script to work with 0.6 database schema.
[rails.git] / app / controllers / api_controller.rb
index cae510284068a2d48f3bad0ce29b73425b008030..f0ba325682c567f400c94d6bd0d398f1f9b9f804 100644 (file)
@@ -225,7 +225,7 @@ class ApiController < ApplicationController
       endtime = Time.parse(params[:end])
     else
       hours = (params[:hours] || '1').to_i.hours
       endtime = Time.parse(params[:end])
     else
       hours = (params[:hours] || '1').to_i.hours
-      endtime = Time.now
+      endtime = Time.now.getutc
       starttime = endtime - hours
     end
 
       starttime = endtime - hours
     end