From 81629ebfeb970849ed409af0382ff131cabdb508 Mon Sep 17 00:00:00 2001 From: Christian Steinle Date: Tue, 3 Jun 2025 11:47:32 +0200 Subject: [PATCH] Fix errors for first of month. --- public/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/index.php b/public/index.php index e75f3de..6ab514e 100644 --- a/public/index.php +++ b/public/index.php @@ -42,10 +42,10 @@ $chosen_date_time = new DateTime($chosen_date);
modify('-1 month'); if ($dates['first'] < $chosen_date_time) { - echo ""; + echo ""; } else { + $chosen_date_time->modify('-1 month'); echo ''; } $chosen_date_time->modify('+1 month');