1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-23 00:22:19 +01:00

fix(util): make unti tests pass whatever the timezone is

This commit is contained in:
Corinne Krych 2018-02-06 14:12:00 +01:00
parent 95ad6ed33a
commit dedcced8d4

View File

@ -5,6 +5,7 @@ const dateTimeOptions = {
hour: '2-digit',
minute: '2-digit',
second: '2-digit',
timeZone: 'UTC',
};
export const formatFullDateTime = v => new Date(v).toLocaleString('nb-NO', dateTimeOptions);