From f3b474dac2364821c7a279fd4bdea92c9d8a617a Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Fri, 22 Jul 2022 20:30:37 +0530 Subject: [PATCH 1/2] Fix date formats at back office --- .../dashboard/helpers/view/view.tpl | 225 +++++++++--------- .../orders/_current_cart_details_data.tpl | 2 +- .../controllers/orders/_product_line.tpl | 2 +- .../controllers/orders/helpers/view/view.tpl | 10 +- .../admin/AdminDashboardController.php | 7 +- modules/dashactivity/dashactivity.php | 2 - modules/dashactivity/views/js/dashactivity.js | 104 +------- .../templates/hook/dashboard_zone_one.tpl | 6 +- .../dashoccupancy/views/js/dashoccupancy.js | 16 +- .../AdminHotelRoomsBookingController.php | 20 +- .../AdminOrderRestrictSettingsController.php | 1 + .../views/js/HotelReservationAdmin.js | 30 +-- .../hotel_rooms_booking/helpers/view/view.tpl | 31 +-- modules/statsforecast/statsforecast.php | 2 +- 14 files changed, 188 insertions(+), 270 deletions(-) diff --git a/admin/themes/default/template/controllers/dashboard/helpers/view/view.tpl b/admin/themes/default/template/controllers/dashboard/helpers/view/view.tpl index 197401de0..10d7c920a 100644 --- a/admin/themes/default/template/controllers/dashboard/helpers/view/view.tpl +++ b/admin/themes/default/template/controllers/dashboard/helpers/view/view.tpl @@ -23,120 +23,119 @@ * International Registered Trademark & Property of PrestaShop SA *}
- {$hookDashboardTop} -
- {if $warning} -
-
{$warning}
-
- {/if} -
-
-
-
-
-
-
- - - - - - -
- - - -
- - {$calendar} -
-
-
-
-
-
-
-
- - -
-
-
-
-
-
-
-
-
- {$hookDashboardZoneTwo} -
-
-
- {$hookDashboardZoneOne} -
-
-
- {$hookDashboardZoneThree} -
- -
-
-
- -
+ {$hookDashboardTop} +
+ {if $warning} +
+
{$warning}
+
+ {/if} +
+
+
+
+
+
+
+ + + + + + +
+ + + +
+ + {$calendar} +
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+ {$hookDashboardZoneTwo} +
+
+
+ {$hookDashboardZoneOne} +
+
+
+ {$hookDashboardZoneThree} +
+ +
+
+
+
diff --git a/admin/themes/default/template/controllers/orders/_current_cart_details_data.tpl b/admin/themes/default/template/controllers/orders/_current_cart_details_data.tpl index adac13275..ae11f1f4b 100644 --- a/admin/themes/default/template/controllers/orders/_current_cart_details_data.tpl +++ b/admin/themes/default/template/controllers/orders/_current_cart_details_data.tpl @@ -57,7 +57,7 @@ {/if} - {$data.date_from|escape:'html':'UTF-8'|date_format:"%d-%m-%Y"} -  {$data.date_to|escape:'html':'UTF-8'|date_format:"%d-%m-%Y"} + {dateFormat date=$data.date_from full=0} - {dateFormat date=$data.date_to full=0}