diff --git a/src/filters/toDateHourMin.js b/src/filters/toDateHourMin.js index 2b6995c01..c813840cb 100644 --- a/src/filters/toDateHourMin.js +++ b/src/filters/toDateHourMin.js @@ -1,5 +1,6 @@ export default function toDateHourMin(date) { - const dateHour = new Date(date).toLocaleDateString('es-ES', { + if (!date) return date; + return new Date(date).toLocaleDateString('es-ES', { timeZone: 'Europe/Madrid', year: 'numeric', month: '2-digit', @@ -7,5 +8,4 @@ export default function toDateHourMin(date) { hour: '2-digit', minute: '2-digit', }); - return dateHour; } diff --git a/src/filters/toDateHourMinSec.js b/src/filters/toDateHourMinSec.js index cfc9506fb..51df725e4 100644 --- a/src/filters/toDateHourMinSec.js +++ b/src/filters/toDateHourMinSec.js @@ -1,5 +1,6 @@ export default function toDateHourMinSec(date) { - const dateHour = new Date(date).toLocaleDateString('es-ES', { + if (!date) return date; + return new Date(date).toLocaleDateString('es-ES', { timeZone: 'Europe/Madrid', year: 'numeric', month: '2-digit', @@ -8,5 +9,4 @@ export default function toDateHourMinSec(date) { minute: '2-digit', second: '2-digit', }); - return dateHour; } diff --git a/src/pages/Supplier/Card/SupplierSummary.vue b/src/pages/Supplier/Card/SupplierSummary.vue index a08561933..8ba61afb9 100644 --- a/src/pages/Supplier/Card/SupplierSummary.vue +++ b/src/pages/Supplier/Card/SupplierSummary.vue @@ -39,6 +39,7 @@ const getUrl = (section) => `#/supplier/${entityId.value}/${section}`; :url="`Suppliers/${entityId}/getSummary`" @on-fetch="(data) => setData(data)" data-key="SupplierSummary" + module-name="Supplier" >