]> git.openstreetmap.org Git - rails.git/blobdiff - script/statistics
Fix Lint/DuplicateBranch rubocop warnings
[rails.git] / script / statistics
index ffc672b0bdf3f34925f6eb919ac855a2c67529e6..05ed637a866eb8a4152bf0657295f92089894d11 100755 (executable)
@@ -2,7 +2,7 @@
 
 require File.join(File.dirname(__FILE__), "..", "config", "environment")
 
-start_time = Time.now
+start_time = Time.now.utc
 
 puts "<html>"
 puts "<head>"
@@ -87,7 +87,7 @@ rescue StandardError => e
   puts "<p><em>Exception: #{e}</em><br />#{e.backtrace.join('<br />')}</p>"
 end
 
-puts "<p>Report took #{Time.new - start_time} seconds to run</p>"
+puts "<p>Report took #{Time.now.utc - start_time} seconds to run</p>"
 puts "</body>"
 puts "</html>"