fix: date local

This commit is contained in:
Alexandro Uc Santos
2025-07-30 21:33:21 -06:00
parent dcf963d5f9
commit 9ed4035467
6 changed files with 40 additions and 25 deletions

View File

@@ -1,6 +1,6 @@
<script setup>
import Swal from 'sweetalert2';
import { getDateOnly } from '../helpers/date_formats';
import { getDayMonthYear } from '../helpers/date_formats';
import { useVehiclesStore } from '../stores/vehicles';
import { useAuthStore } from '../stores/auth';
import { useI18n } from 'vue-i18n';
@@ -112,7 +112,7 @@
</i>
</span>
</p>
<p v-if="vehicle.is_available">{{ t('vehicles.availableDate') }}: <span>{{ getDateOnly(vehicle.available_date) }}</span></p>
<p v-if="vehicle.is_available">{{ t('vehicles.availableDate') }}: <span>{{ getDayMonthYear(vehicle.available_date) }}</span></p>
<p v-if="vehicle.active_load && !readOnly">
{{ t('loads.loadCode') }}:
<span