From 2e75251e360a8717e39c4d4bc1cc10c290473bb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Tue, 8 Mar 2022 15:12:42 +0100 Subject: [PATCH] Render dates with shortened year number --- .../ep_products/Classes/Controller/AjaxTableController.php | 4 ++-- .../Resources/Private/Templates/AjaxTable/Pricetable.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/public/typo3conf/ext/ep_products/Classes/Controller/AjaxTableController.php b/public/typo3conf/ext/ep_products/Classes/Controller/AjaxTableController.php index 5755c021..6665352b 100644 --- a/public/typo3conf/ext/ep_products/Classes/Controller/AjaxTableController.php +++ b/public/typo3conf/ext/ep_products/Classes/Controller/AjaxTableController.php @@ -227,8 +227,8 @@ class AjaxTableController extends ActionController ]); $hasSurchargeOrDiscount = $this->dateService->checkSurcharcheOrDiscount($priceTable); - $dateStart = $date ? $date->getDateStart()->format('d.m.Y') : ''; - $dateEnd = $date ? $date->getDateEnd()->format('d.m.Y') : ''; + $dateStart = $date ? $date->getDateStart()->format('d.m.y') : ''; + $dateEnd = $date ? $date->getDateEnd()->format('d.m.y') : ''; $dateRange = sprintf('%s - %s', $dateStart, $dateEnd); $noInfoConceptUids = GeneralUtility::trimExplode(',', $this->settings['noInfoConceptUids']); diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/AjaxTable/Pricetable.html b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/AjaxTable/Pricetable.html index 64d03cd1..b78f7b62 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/AjaxTable/Pricetable.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/AjaxTable/Pricetable.html @@ -6,7 +6,7 @@
- Buchungsoptionen {hotel.name} {dateRange} + Buchungsoptionen {hotel.name}