Add moment timezone for fix hours
This commit is contained in:
parent
fcb193ee00
commit
256f1483ac
@ -15,7 +15,7 @@ export default {
|
|||||||
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],
|
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],
|
||||||
},
|
},
|
||||||
css: [],
|
css: [],
|
||||||
plugins: ['~/plugins/inject.js', '~/plugins/chart.js'],
|
plugins: ['~/plugins/inject.js', '~/plugins/chart.js', '~/plugins/moment_timezone.js'],
|
||||||
components: true,
|
components: true,
|
||||||
buildModules: [],
|
buildModules: [],
|
||||||
modules: ['@nuxtjs/axios', 'nuxt-buefy', '@nuxtjs/pwa', 'nuxt-socket-io'],
|
modules: ['@nuxtjs/axios', 'nuxt-buefy', '@nuxtjs/pwa', 'nuxt-socket-io'],
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
"js-file-download": "^0.4.12",
|
"js-file-download": "^0.4.12",
|
||||||
"jwt-decode": "^3.1.2",
|
"jwt-decode": "^3.1.2",
|
||||||
"moment": "^2.29.4",
|
"moment": "^2.29.4",
|
||||||
|
"moment-timezone": "^0.5.45",
|
||||||
"nuxt": "^2.15.8",
|
"nuxt": "^2.15.8",
|
||||||
"nuxt-buefy": "^0.4.23",
|
"nuxt-buefy": "^0.4.23",
|
||||||
"nuxt-socket-io": "^2.0.3",
|
"nuxt-socket-io": "^2.0.3",
|
||||||
|
2
plugins/moment_timezone.js
Normal file
2
plugins/moment_timezone.js
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
import * as utc from 'moment-timezone';
|
||||||
|
utc.tz.setDefault("America/Mexico_City")
|
Loading…
Reference in New Issue
Block a user