]> source.dussan.org Git - sonarqube.git/commitdiff
Revert "SONAR-5664 Component Viewer doesn't work properly in the differential mode...
authorStas Vilchik <vilchiks@gmail.com>
Fri, 26 Sep 2014 12:31:43 +0000 (18:31 +0600)
committerStas Vilchik <vilchiks@gmail.com>
Fri, 26 Sep 2014 12:31:43 +0000 (18:31 +0600)
This reverts commit 070db3abc8f5854935f25ac53692d3111cb6436c.

server/sonar-web/src/main/coffee/component-viewer/main.coffee

index bea66c2dc6a0a7e2d60a2102007094dc8bdca21b..9f65306e531b771c660c8d3d2519670610cd07cd 100644 (file)
@@ -185,8 +185,8 @@ define [
           # Periods
           @periods.reset [{label: t('none')}]
           data.periods.forEach (p) =>
-            d = moment p[2]
-            date = new Date d.get('year'), d.get('month'), d.get('date')
+            d = new Date p[2]
+            d.setHours 0, 0, 0, 0
             p = @periods.add key: p[0], label: p[1], sinceDate: d