Show expiry date after forecast

This commit is contained in:
gitea_admin committed 2026-09-06 09:11:28 +02:00
1 parent f00af08ec4
commit 4d3fbdad8c
1 file changed
+1 -1
+1 -1
View File
@@ -238,7 +238,7 @@ function auth_render_lager_table(string $title, array $rows, array $columns, str
$expiryDate = new DateTimeImmutable((string) $row['expiry_date']);
$forecastWarning = $forecastDateObject >= $expiryDate->modify('-3 months')
&& $forecastDateObject <= $expiryDate;
if ($forecastWarning) {
if ($forecastWarning || $forecastDateObject > $expiryDate) {
$forecastText .= ' (MHD: ' . $expiryDate->format('d.m.Y') . ')';
}
}