mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Fix Android start up crash
Maybe then we can run it in BrowserStack
This commit is contained in:
@ -4,8 +4,10 @@ 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(Localization.getCalendars()[0].timeZone)
|
||||
Intl.DateTimeFormat.__setDefaultTimeZone(Intl.DateTimeFormat.__setDefaultTimeZone('xxx'))
|
||||
} catch {}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user