From afc650d41f16936eb3fbb94dcb0a93dc5cbf39a9 Mon Sep 17 00:00:00 2001 From: amansinghbais Date: Fri, 24 Jan 2025 13:02:17 +0530 Subject: [PATCH] Fixed: AM/PM showing twice in the date issue (#897) --- src/components/GiftCardActivationModal.vue | 2 +- src/views/Completed.vue | 4 ++-- src/views/InProgress.vue | 4 ++-- src/views/OpenOrders.vue | 4 ++-- src/views/OrderDetail.vue | 6 +++--- src/views/Rejections.vue | 6 +++--- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/components/GiftCardActivationModal.vue b/src/components/GiftCardActivationModal.vue index 620a33f2..923af9f8 100644 --- a/src/components/GiftCardActivationModal.vue +++ b/src/components/GiftCardActivationModal.vue @@ -160,7 +160,7 @@ export default defineComponent({ } }, getCreatedDateTime() { - return DateTime.fromMillis(this.item.gcInfo.fulfillmentDate).toFormat("dd MMMM yyyy t a ZZZZ"); + return DateTime.fromMillis(this.item.gcInfo.fulfillmentDate).toFormat("dd MMMM yyyy hh:mm a ZZZZ"); } }, setup() { diff --git a/src/views/Completed.vue b/src/views/Completed.vue index 6657a75e..9b9794b0 100644 --- a/src/views/Completed.vue +++ b/src/views/Completed.vue @@ -49,7 +49,7 @@
{{ order.customerName }} -

{{ translate("Ordered") }} {{ formatUtcDate(order.orderDate, 'dd MMMM yyyy t a ZZZZ') }}

+

{{ translate("Ordered") }} {{ formatUtcDate(order.orderDate, 'dd MMMM yyyy hh:mm a ZZZZ') }}

@@ -64,7 +64,7 @@
{{ order.shipmentMethodTypeDesc }} -

{{ translate("Last brokered") }} {{ formatUtcDate(order.reservedDatetime, 'dd MMMM yyyy t a ZZZZ') }}

+

{{ translate("Last brokered") }} {{ formatUtcDate(order.reservedDatetime, 'dd MMMM yyyy hh:mm a ZZZZ') }}

{{ translate("Tracking Code") }} {{ order.trackingCode }}

diff --git a/src/views/InProgress.vue b/src/views/InProgress.vue index 95c67a50..604c5a45 100644 --- a/src/views/InProgress.vue +++ b/src/views/InProgress.vue @@ -52,7 +52,7 @@
{{ order.customerName }} -

{{ translate("Ordered") }} {{ formatUtcDate(order.orderDate, 'dd MMMM yyyy t a ZZZZ') }}

+

{{ translate("Ordered") }} {{ formatUtcDate(order.orderDate, 'dd MMMM yyyy hh:mm a ZZZZ') }}

@@ -67,7 +67,7 @@
{{ order.shipmentMethodTypeDesc }} -

{{ translate("Last brokered") }} {{ formatUtcDate(order.reservedDatetime, 'dd MMMM yyyy t a ZZZZ') }}

+

{{ translate("Last brokered") }} {{ formatUtcDate(order.reservedDatetime, 'dd MMMM yyyy hh:mm a ZZZZ') }}

diff --git a/src/views/OpenOrders.vue b/src/views/OpenOrders.vue index de58a04a..96834e21 100644 --- a/src/views/OpenOrders.vue +++ b/src/views/OpenOrders.vue @@ -44,7 +44,7 @@
{{ order.customerName }} -

{{ translate("Ordered") }} {{ formatUtcDate(order.orderDate, 'dd MMMM yyyy t a ZZZZ') }}

+

{{ translate("Ordered") }} {{ formatUtcDate(order.orderDate, 'dd MMMM yyyy hh:mm a ZZZZ') }}

@@ -59,7 +59,7 @@
{{ order.shipmentMethodTypeDesc }} -

{{ translate("Last brokered") }} {{ formatUtcDate(order.reservedDatetime, 'dd MMMM yyyy t a ZZZZ') }}

+

{{ translate("Last brokered") }} {{ formatUtcDate(order.reservedDatetime, 'dd MMMM yyyy hh:mm a ZZZZ') }}

diff --git a/src/views/OrderDetail.vue b/src/views/OrderDetail.vue index 978812a1..687f0d1e 100644 --- a/src/views/OrderDetail.vue +++ b/src/views/OrderDetail.vue @@ -36,7 +36,7 @@
{{ order.customerName }} -

{{ translate("Ordered") }} {{ formatUtcDate(order.orderDate, 'dd MMMM yyyy t a ZZZZ') }}

+

{{ translate("Ordered") }} {{ formatUtcDate(order.orderDate, 'dd MMMM yyyy hh:mm a ZZZZ') }}

@@ -49,7 +49,7 @@
@@ -1613,7 +1613,7 @@ export default defineComponent({ return isMessageRequired ? translate(message, { message: this.orderInvoicingInfo.response.Message }) : translate(message); }, getInvoicingConfirmationDate(date: any) { - return DateTime.fromMillis(date).setZone(this.userProfile.userTimeZone).toFormat('dd MMMM yyyy t a ZZZZ') + return DateTime.fromMillis(date).setZone(this.userProfile.userTimeZone).toFormat('dd MMMM yyyy hh:mm a ZZZZ') }, async printPackingSlip(order: any) { // if the request to print packing slip is not yet completed, then clicking multiple times on the button diff --git a/src/views/Rejections.vue b/src/views/Rejections.vue index 875f6e4b..30c1dd3d 100644 --- a/src/views/Rejections.vue +++ b/src/views/Rejections.vue @@ -92,7 +92,7 @@
{{ order.customerName }} -

{{ translate("Ordered") }} {{ formatUtcDate(order.orderDate, 'dd MMMM yyyy t a ZZZZ') }}

+

{{ translate("Ordered") }} {{ formatUtcDate(order.orderDate, 'dd MMMM yyyy hh:mm a ZZZZ') }}

@@ -106,7 +106,7 @@
{{ order.shipmentMethod }} -

{{ translate("Last brokered") }} {{ formatUtcDate(order.reservedDatetime, 'dd MMMM yyyy t a ZZZZ') }}

+

{{ translate("Last brokered") }} {{ formatUtcDate(order.reservedDatetime, 'dd MMMM yyyy hh:mm a ZZZZ') }}

@@ -123,7 +123,7 @@ - {{ formatUtcDate(item.rejectedAt, 'dd MMMM yyyy t a ZZZZ')}} + {{ formatUtcDate(item.rejectedAt, 'dd MMMM yyyy hh:mm a ZZZZ')}}

{{ translate('rejected time') }}