diff options
Diffstat (limited to 'server/sonar-web/src/main/js/apps/projectActivity/components/ProjectActivityAppContainer.js')
-rw-r--r-- | server/sonar-web/src/main/js/apps/projectActivity/components/ProjectActivityAppContainer.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/apps/projectActivity/components/ProjectActivityAppContainer.js b/server/sonar-web/src/main/js/apps/projectActivity/components/ProjectActivityAppContainer.js index 61e9bd077c2..172e0d35bcf 100644 --- a/server/sonar-web/src/main/js/apps/projectActivity/components/ProjectActivityAppContainer.js +++ b/server/sonar-web/src/main/js/apps/projectActivity/components/ProjectActivityAppContainer.js @@ -19,7 +19,6 @@ */ // @flow import React from 'react'; -import moment from 'moment'; import { connect } from 'react-redux'; import { withRouter } from 'react-router'; import ProjectActivityApp from './ProjectActivityApp'; @@ -173,7 +172,7 @@ class ProjectActivityAppContainer extends React.PureComponent { return api .getProjectActivity({ ...parameters, ...additional }) .then(({ analyses, paging }) => ({ - analyses: analyses.map(analysis => ({ ...analysis, date: moment(analysis.date).toDate() })), + analyses: analyses.map(analysis => ({ ...analysis, date: new Date(analysis.date) })), paging })); }; @@ -187,7 +186,7 @@ class ProjectActivityAppContainer extends React.PureComponent { measures.map(measure => ({ metric: measure.metric, history: measure.history.map(analysis => ({ - date: moment(analysis.date).toDate(), + date: new Date(analysis.date), value: analysis.value })) })), |