revert Intl, node is not ready, fix #250
This commit is contained in:
@@ -72,6 +72,7 @@ import SMTP from './SMTP.vue'
|
|||||||
import Geolocation from './Geolocation.vue'
|
import Geolocation from './Geolocation.vue'
|
||||||
import { mapActions, mapState } from 'vuex'
|
import { mapActions, mapState } from 'vuex'
|
||||||
import { DateTime } from 'luxon'
|
import { DateTime } from 'luxon'
|
||||||
|
import tzNames from './tz.json'
|
||||||
import { mdiAlert, mdiArrowRight, mdiMap } from '@mdi/js'
|
import { mdiAlert, mdiArrowRight, mdiMap } from '@mdi/js'
|
||||||
const locales = require('../../locales/index')
|
const locales = require('../../locales/index')
|
||||||
|
|
||||||
@@ -127,7 +128,6 @@ export default {
|
|||||||
},
|
},
|
||||||
filteredTimezones () {
|
filteredTimezones () {
|
||||||
const current_timezone = DateTime.local().zoneName
|
const current_timezone = DateTime.local().zoneName
|
||||||
const tzNames = Intl.supportedValuesOf('timeZone')
|
|
||||||
tzNames.unshift(current_timezone)
|
tzNames.unshift(current_timezone)
|
||||||
return tzNames
|
return tzNames
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user