Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
49d16ef070 | ||
![]() |
e8c84c08ce | ||
![]() |
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'],
|
||||||
@ -36,6 +36,6 @@ export default {
|
|||||||
path: process.env.PATH_URL,
|
path: process.env.PATH_URL,
|
||||||
hcaptchakey: process.env.HCAPTCHA_KEY,
|
hcaptchakey: process.env.HCAPTCHA_KEY,
|
||||||
addHora: process.env.ADD_HORA,
|
addHora: process.env.ADD_HORA,
|
||||||
addHora2: process.env.ADD_HORA_2,
|
addHora2: process.env.ADD_HORA_2,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
20028
package-lock.json
generated
20028
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -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",
|
||||||
|
@ -10,7 +10,9 @@
|
|||||||
mostrarInputSwitch
|
mostrarInputSwitch
|
||||||
filaActivo
|
filaActivo
|
||||||
/>
|
/>
|
||||||
|
<Title title="test ">
|
||||||
|
|
||||||
|
</Title>
|
||||||
<b-loading :can-cancel="false" v-model="isLoading" is-full-page />
|
<b-loading :can-cancel="false" v-model="isLoading" is-full-page />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -19,6 +21,8 @@
|
|||||||
import TablaBuscadorPrestamo from '@/components/tablaBuscador/TablaBuscadorPrestamo'
|
import TablaBuscadorPrestamo from '@/components/tablaBuscador/TablaBuscadorPrestamo'
|
||||||
import jwt_decode from 'jwt-decode'
|
import jwt_decode from 'jwt-decode'
|
||||||
import Title from '@/components/layouts/Title'
|
import Title from '@/components/layouts/Title'
|
||||||
|
import moment from 'moment'
|
||||||
|
import { setTimezone } from '~/plugins/moment_timezone'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: { TablaBuscadorPrestamo, Title },
|
components: { TablaBuscadorPrestamo, Title },
|
||||||
@ -39,6 +43,8 @@ export default {
|
|||||||
this.$router.push('/prestamo_devolucion')
|
this.$router.push('/prestamo_devolucion')
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
setTimezone()
|
||||||
|
console.log(moment().toDate())
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style></style>
|
<style></style>
|
||||||
|
6
plugins/moment_timezone.js
Normal file
6
plugins/moment_timezone.js
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
import * as utc from 'moment-timezone';
|
||||||
|
utc.tz.setDefault("America/Mexico_City")
|
||||||
|
|
||||||
|
export function setTimezone(){
|
||||||
|
utc.tz.setDefault("America/Mexico_City")
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user