mirror of
https://github.com/Unleash/unleash.git
synced 2025-04-24 01:18:01 +02:00
fix(util): make unti tests pass whatever the timezone is
This commit is contained in:
parent
95ad6ed33a
commit
dedcced8d4
@ -5,6 +5,7 @@ const dateTimeOptions = {
|
|||||||
hour: '2-digit',
|
hour: '2-digit',
|
||||||
minute: '2-digit',
|
minute: '2-digit',
|
||||||
second: '2-digit',
|
second: '2-digit',
|
||||||
|
timeZone: 'UTC',
|
||||||
};
|
};
|
||||||
|
|
||||||
export const formatFullDateTime = v => new Date(v).toLocaleString('nb-NO', dateTimeOptions);
|
export const formatFullDateTime = v => new Date(v).toLocaleString('nb-NO', dateTimeOptions);
|
||||||
|
Loading…
Reference in New Issue
Block a user