X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/8140c993139247fb13e3827b30851d0b774c0f32..afcb345014d98914cd4f5d6b14ca2e30feac194c:/app/controllers/api_controller.rb diff --git a/app/controllers/api_controller.rb b/app/controllers/api_controller.rb index cae510284..f0ba32568 100644 --- a/app/controllers/api_controller.rb +++ b/app/controllers/api_controller.rb @@ -225,7 +225,7 @@ class ApiController < ApplicationController endtime = Time.parse(params[:end]) else hours = (params[:hours] || '1').to_i.hours - endtime = Time.now + endtime = Time.now.getutc starttime = endtime - hours end