Skip to main content

useTimezone

Hook that returns the timezone selected in MoBro.

Returns

A simple string with the selected timezone in MoBro.

Example

src/widgets/example/Example.tsx
import React from 'react'
import {useTimezone} from '@modbros/dashboard-sdk'

export default function Example() {
// timezone like Europe/Vienna
const timezone = useTimezone()

return null
}