mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-01 21:56:55 +00:00
8 lines
376 B
TypeScript
8 lines
376 B
TypeScript
import { getTimeZones } from '@vvo/tzdb'
|
|
export { constructDateFormat, constructDateTimeFormat, constructTimeFormat, workerWithTimezone } from 'nocodb-sdk'
|
|
|
|
const timezones = getTimeZones({ includeUtc: true })
|
|
export function getTimeZoneFromName(name: string = Intl.DateTimeFormat().resolvedOptions().timeZone) {
|
|
return timezones.find((k) => isSameTimezone(k.name, name))
|
|
}
|