]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5183 timezones - fix timeline widget
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>
Thu, 12 Feb 2015 15:42:10 +0000 (16:42 +0100)
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>
Thu, 12 Feb 2015 15:42:31 +0000 (16:42 +0100)
server/sonar-web/src/main/webapp/WEB-INF/app/models/trends_chart.rb

index d94c0d5be2e0ba1cd10fcb00c06b9abfb7fc005e..fd1bb8165171f364b193aeee5986c8595bbf6584 100644 (file)
@@ -37,10 +37,10 @@ class TrendsChart
       sql += ' order by s.created_at ASC'
       conditions=[sql, Snapshot::STATUS_PROCESSED, resource.id, metric_ids]
       if (options[:from])
-        conditions<<options[:from]
+        conditions<<options[:from].to_i*1000
       end
       if (options[:to])
-        conditions<<options[:to]
+        conditions<<options[:to].to_i*1000
       end
       ProjectMeasure.connection.select_all(Project.send(:sanitize_sql, conditions))
     end