aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2014-09-26 13:00:20 +0600
committerStas Vilchik <vilchiks@gmail.com>2014-09-26 13:00:30 +0600
commit070db3abc8f5854935f25ac53692d3111cb6436c (patch)
treec781823fe4bafab0e13a7e994d3bb603ec243cd7
parentea1ac3789b9128e394284d82dfeaeab32dd441d8 (diff)
downloadsonarqube-070db3abc8f5854935f25ac53692d3111cb6436c.tar.gz
sonarqube-070db3abc8f5854935f25ac53692d3111cb6436c.zip
SONAR-5664 Component Viewer doesn't work properly in the differential mode in Safari
-rw-r--r--server/sonar-web/src/main/coffee/component-viewer/main.coffee4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/coffee/component-viewer/main.coffee b/server/sonar-web/src/main/coffee/component-viewer/main.coffee
index 9f65306e531..bea66c2dc6a 100644
--- a/server/sonar-web/src/main/coffee/component-viewer/main.coffee
+++ b/server/sonar-web/src/main/coffee/component-viewer/main.coffee
@@ -185,8 +185,8 @@ define [
# Periods
@periods.reset [{label: t('none')}]
data.periods.forEach (p) =>
- d = new Date p[2]
- d.setHours 0, 0, 0, 0
+ d = moment p[2]
+ date = new Date d.get('year'), d.get('month'), d.get('date')
p = @periods.add key: p[0], label: p[1], sinceDate: d