Render dates with shortened year number

This commit is contained in:
Björn Fromme
2022-03-08 15:12:42 +01:00
parent cd77510059
commit 2e75251e36
2 changed files with 3 additions and 3 deletions
@@ -227,8 +227,8 @@ class AjaxTableController extends ActionController
]); ]);
$hasSurchargeOrDiscount = $this->dateService->checkSurcharcheOrDiscount($priceTable); $hasSurchargeOrDiscount = $this->dateService->checkSurcharcheOrDiscount($priceTable);
$dateStart = $date ? $date->getDateStart()->format('d.m.Y') : ''; $dateStart = $date ? $date->getDateStart()->format('d.m.y') : '';
$dateEnd = $date ? $date->getDateEnd()->format('d.m.Y') : ''; $dateEnd = $date ? $date->getDateEnd()->format('d.m.y') : '';
$dateRange = sprintf('%s - %s', $dateStart, $dateEnd); $dateRange = sprintf('%s - %s', $dateStart, $dateEnd);
$noInfoConceptUids = GeneralUtility::trimExplode(',', $this->settings['noInfoConceptUids']); $noInfoConceptUids = GeneralUtility::trimExplode(',', $this->settings['noInfoConceptUids']);
@@ -6,7 +6,7 @@
<f:section name="Main"> <f:section name="Main">
<div class="headline--3 headline--underlined"> <div class="headline--3 headline--underlined">
Buchungsoptionen {hotel.name} {dateRange} Buchungsoptionen {hotel.name}
</div> </div>
<div class="mb-4" data-controller="pricetable" <div class="mb-4" data-controller="pricetable"