mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-05 03:36:44 +00:00
fix(nc-gui): timezone display issue
This commit is contained in:
@@ -70,8 +70,8 @@ export function parseFlexibleDate(dateString: string) {
|
||||
}
|
||||
|
||||
const timezones = getTimeZones({ includeUtc: true })
|
||||
export function getTimeZoneFromName(name: string) {
|
||||
return timezones.find((k) => k.name === name)
|
||||
export function getTimeZoneFromName(name: string = Intl.DateTimeFormat().resolvedOptions().timeZone) {
|
||||
return timezones.find((k) => isSameTimezone(k.name, name))
|
||||
}
|
||||
|
||||
export function withTimezone(timezone?: string) {
|
||||
|
||||
Reference in New Issue
Block a user