Add moment timezone for fix hours into
This commit is contained in:
parent
e8c84c08ce
commit
49d16ef070
@ -10,7 +10,9 @@
|
||||
mostrarInputSwitch
|
||||
filaActivo
|
||||
/>
|
||||
<Title title="test ">
|
||||
|
||||
</Title>
|
||||
<b-loading :can-cancel="false" v-model="isLoading" is-full-page />
|
||||
</div>
|
||||
</template>
|
||||
@ -19,6 +21,8 @@
|
||||
import TablaBuscadorPrestamo from '@/components/tablaBuscador/TablaBuscadorPrestamo'
|
||||
import jwt_decode from 'jwt-decode'
|
||||
import Title from '@/components/layouts/Title'
|
||||
import moment from 'moment'
|
||||
import { setTimezone } from '~/plugins/moment_timezone'
|
||||
|
||||
export default {
|
||||
components: { TablaBuscadorPrestamo, Title },
|
||||
@ -39,6 +43,8 @@ export default {
|
||||
this.$router.push('/prestamo_devolucion')
|
||||
},
|
||||
}
|
||||
setTimezone()
|
||||
console.log(moment().toDate())
|
||||
</script>
|
||||
|
||||
<style></style>
|
||||
|
@ -1,2 +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