mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Fix #655
This commit is contained in:
@ -1,14 +0,0 @@
|
||||
import * as Localization from 'expo-localization'
|
||||
import log from './log'
|
||||
|
||||
const timezone = () => {
|
||||
log('log', 'Timezone', Localization.getCalendars()[0].timeZone || 'unknown')
|
||||
if ('__setDefaultTimeZone' in Intl.DateTimeFormat) {
|
||||
try {
|
||||
// @ts-ignore
|
||||
Intl.DateTimeFormat.__setDefaultTimeZone(Intl.DateTimeFormat.__setDefaultTimeZone('xxx'))
|
||||
} catch {}
|
||||
}
|
||||
}
|
||||
|
||||
export default timezone
|
Reference in New Issue
Block a user