From 512335aa981a816bc9ee0725c7ee0344f525f390 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Gr=C3=A9goire=20Aubert?= Date: Fri, 4 May 2018 15:42:50 +0200 Subject: [PATCH] SONARCLOUD-34 Automatically update the footer date in SonarCloud --- .../src/main/js/app/components/GlobalFooterSonarCloud.tsx | 5 +++-- .../app/components/__tests__/GlobalFooterSonarCloud-test.tsx | 4 ++++ .../__snapshots__/GlobalFooterSonarCloud-test.tsx.snap | 3 +-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/server/sonar-web/src/main/js/app/components/GlobalFooterSonarCloud.tsx b/server/sonar-web/src/main/js/app/components/GlobalFooterSonarCloud.tsx index c98b4415059..6dd0208f57a 100644 --- a/server/sonar-web/src/main/js/app/components/GlobalFooterSonarCloud.tsx +++ b/server/sonar-web/src/main/js/app/components/GlobalFooterSonarCloud.tsx @@ -18,13 +18,14 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import * as React from 'react'; +import { getYear } from 'date-fns'; import { translate } from '../../helpers/l10n'; export default function GlobalFooterSonarCloud() { return ( -