From bb411d21619c2aeadcd31df5ab1f68e8d819ac09 Mon Sep 17 00:00:00 2001 From: Guillaume Peoc'h Date: Wed, 29 Jun 2022 17:31:44 +0200 Subject: SONAR-16565 Allow users to select the token expiration interval --- server/sonar-web/src/main/js/helpers/dates.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'server/sonar-web/src/main/js/helpers/dates.ts') diff --git a/server/sonar-web/src/main/js/helpers/dates.ts b/server/sonar-web/src/main/js/helpers/dates.ts index 26a139a1c80..8f6abea0a78 100644 --- a/server/sonar-web/src/main/js/helpers/dates.ts +++ b/server/sonar-web/src/main/js/helpers/dates.ts @@ -44,3 +44,7 @@ export function toNotSoISOString(rawDate: ParsableDate): string { export function isValidDate(date: Date): boolean { return !isNaN(date.getTime()); } + +export function now() { + return new Date(); +} -- cgit v1.2.3