mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-02 06:26:52 +00:00
fix(nc-gui): review changes
This commit is contained in:
@@ -70,13 +70,17 @@ export function parseFlexibleDate(dateString: string) {
|
||||
|
||||
const timezones = getTimeZones({ includeUtc: true })
|
||||
export function getTimeZoneFromName(name: string = Intl.DateTimeFormat().resolvedOptions().timeZone) {
|
||||
const timezone = timezones.find((k) => isSameTimezone(k.name, name))
|
||||
let timezone = timezones.find((k) => isSameTimezone(k.name, name))
|
||||
|
||||
if (timezone) return timezone
|
||||
if (!timezone) {
|
||||
timezone = timezones.find((k) => k.group.includes(name))
|
||||
}
|
||||
|
||||
console.log('Timezone not found', name)
|
||||
if (!timezone) {
|
||||
console.log('Timezone not found', name)
|
||||
}
|
||||
|
||||
return timezones.find((k) => k.group.includes(name))
|
||||
return timezone
|
||||
}
|
||||
|
||||
export function withTimezone(timezone?: string) {
|
||||
|
||||
Reference in New Issue
Block a user