fix(nc-gui): timezone display issue

This commit is contained in:
Ramesh Mane
2025-04-22 14:15:55 +00:00
parent c83b9e7b39
commit a178bafbcf
4 changed files with 6 additions and 11 deletions

View File

@@ -61,9 +61,7 @@ const timeZoneDisplay = computed(() => {
return undefined
}
if ((column.value.meta as any)?.isDisplayTimezone) {
const tzName = (column.value.meta as any)?.timezone ?? Intl.DateTimeFormat().resolvedOptions().timeZone
const timeZones = getTimeZones({ includeUtc: true })
return timeZones.find((k) => k.name === tzName)?.abbreviation
return getTimeZoneFromName((column.value.meta as any)?.timezone)?.abbreviation
}
return undefined
})