mirror of
https://github.com/tooot-app/app
synced 2025-04-27 16:38:52 +02:00
13 lines
320 B
TypeScript
13 lines
320 B
TypeScript
import * as Localization from 'expo-localization'
|
|
import log from './log'
|
|
|
|
const timezone = () => {
|
|
log('log', 'Timezone', Localization.timezone)
|
|
if ('__setDefaultTimeZone' in Intl.DateTimeFormat) {
|
|
// @ts-ignore
|
|
Intl.DateTimeFormat.__setDefaultTimeZone(Localization.timezone)
|
|
}
|
|
}
|
|
|
|
export default timezone
|