From 71d02abbd5533574fedd2af6ab6d984726ada836 Mon Sep 17 00:00:00 2001 From: Christian Steinle Date: Tue, 3 Jun 2025 11:34:18 +0200 Subject: [PATCH] Fix errors for first of month. --- public/index.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/public/index.php b/public/index.php index 90b65d5..e75f3de 100644 --- a/public/index.php +++ b/public/index.php @@ -42,12 +42,14 @@ $chosen_date_time = new DateTime($chosen_date);
modify('-1 month'); if ($dates['first'] < $chosen_date_time) { - echo ""; + echo ""; } else { echo ''; } - echo '' . $chosen_date_time->modify('+1 month')->format('Y-m') . ''; + $chosen_date_time->modify('+1 month'); + echo '' . $chosen_date_time->format('Y-m') . ''; if ($dates['last'] > $chosen_date_time->modify('+1 month')) { echo ""; } else {