diff options
author | Guillaume Peoc'h <guillaume.peoch@sonarsource.com> | 2022-06-29 17:31:44 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-07-05 20:02:54 +0000 |
commit | bb411d21619c2aeadcd31df5ab1f68e8d819ac09 (patch) | |
tree | f2194908d9ffea7e914dde2b16a7fde09a2392e4 /server/sonar-web/src/main/js/helpers/dates.ts | |
parent | a2d4cdc405dd84cfaa76ec29b6bad6e12358cdfd (diff) | |
download | sonarqube-bb411d21619c2aeadcd31df5ab1f68e8d819ac09.tar.gz sonarqube-bb411d21619c2aeadcd31df5ab1f68e8d819ac09.zip |
SONAR-16565 Allow users to select the token expiration interval
Diffstat (limited to 'server/sonar-web/src/main/js/helpers/dates.ts')
-rw-r--r-- | server/sonar-web/src/main/js/helpers/dates.ts | 4 |
1 files changed, 4 insertions, 0 deletions
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(); +} |