]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5183 timezones - fix widgets
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>
Fri, 6 Feb 2015 13:53:05 +0000 (14:53 +0100)
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>
Fri, 6 Feb 2015 13:53:35 +0000 (14:53 +0100)
server/sonar-web/src/main/webapp/WEB-INF/app/models/snapshot.rb

index 3e43cf885f2ff3d15b5dfb30cbcc0c862aab69bc..f11ffcb5d8b0cb082a036e33e1e96cb7c4296937 100644 (file)
@@ -103,7 +103,7 @@ class Snapshot < ActiveRecord::Base
     snapshot_conditions = ["snapshots.project_id=? AND snapshots.status=? AND snapshots.scope=? AND snapshots.qualifier=?", resource.id, STATUS_PROCESSED, resource.scope, resource.qualifier]
     if options[:from]
       snapshot_conditions[0] += " AND snapshots.created_at>=?"
-      snapshot_conditions << options[:from]
+      snapshot_conditions << options[:from].to_i * 1000
     end
     first_snapshot=Snapshot.find(:first, :conditions => snapshot_conditions, :order => 'snapshots.created_at ASC')
     last_snapshot=resource.last_snapshot