fix: date local
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<script setup>
|
||||
import { Qalendar } from 'qalendar';
|
||||
import {eventStatusLoad} from '../helpers/status';
|
||||
import {getDateTime, formatOnlyDate} from '../helpers/date_formats';
|
||||
import {getDateTimeFormat, formatOnlyDate} from '../helpers/date_formats';
|
||||
import { onMounted, ref } from 'vue';
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import useCalendar from '../composables/useCalendar';
|
||||
@@ -64,7 +64,7 @@ import { useAuthStore } from '../stores/auth';
|
||||
},
|
||||
defaultMode: 'month',
|
||||
isSilent: true,
|
||||
// showCurrentTime: true, // Display a line indicating the current time
|
||||
// showCurrentTime: false, // Display a line indicating the current time
|
||||
}
|
||||
|
||||
onMounted( async() => {
|
||||
@@ -119,8 +119,8 @@ import { useAuthStore } from '../stores/auth';
|
||||
events.value = [];
|
||||
loads.value.forEach((e) => {
|
||||
const indicator = eventStatusLoad(e.load_status);
|
||||
const dateStart = getDateTime(e.est_loading_date, 0);
|
||||
const dateEnd = getDateTime(e.est_loading_date, 1);
|
||||
const dateStart = getDateTimeFormat(e.est_loading_date, 0);
|
||||
const dateEnd = getDateTimeFormat(e.est_loading_date, 1);
|
||||
events.value.push({
|
||||
id: e._id,
|
||||
title: e.shipment_code.toUpperCase(),
|
||||
@@ -128,7 +128,7 @@ import { useAuthStore } from '../stores/auth';
|
||||
start: e.est_loading_date,
|
||||
end: e.est_unloading_date,
|
||||
description: indicator.load_status,
|
||||
colorScheme: e.load_status.toLowerCase(),
|
||||
colorScheme: e.load_status?.toLowerCase(),
|
||||
color: indicator.color,
|
||||
time: {
|
||||
start: dateStart,
|
||||
|
||||
Reference in New Issue
Block a user