Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

223 B
Raw Blame
import dayjs from 'dayjs'

export function guessLocalTimezone(): string {
  const guess = dayjs.tz.guess()
  try {
    Intl.DateTimeFormat(undefined, { timeZone: guess })
    return guess
  } catch {
    return 'UTC'
  }
}