QFix for timezone (#3952)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev 2023-11-07 23:11:49 +07:00 committed by GitHub
parent 50a5aabc38
commit c9aceeaa8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -128,5 +128,5 @@ export function getFormattedDate (value: number | null): string {
}
export const getTimeZoneName = (): string => {
return Intl.DateTimeFormat().resolvedOptions().timeZone.split('/')[1]
return Intl.DateTimeFormat().resolvedOptions().timeZone?.split('/')[1] ?? ''
}