From 558a0ba07390c0d97b93b455599328f8ddfc8a73 Mon Sep 17 00:00:00 2001 From: Nils <> Date: Wed, 19 Feb 2025 22:06:21 +0100 Subject: [PATCH] fix third wendesday, again --- third_wednesday_new.php | 1 + 1 file changed, 1 insertion(+) diff --git a/third_wednesday_new.php b/third_wednesday_new.php index 20f5c57..61c3a37 100644 --- a/third_wednesday_new.php +++ b/third_wednesday_new.php @@ -3,6 +3,7 @@ function getNextThirdWednesday() { // Set the timezone to Europe/Berlin $timezone = new DateTimeZone('Europe/Berlin'); $today = new DateTime('now', $timezone); + $today->modify('-1 day'); //bug workaround. The date switch on the osamc website was always a few hours too early. This should fix it. $month = (int)$today->format('n'); $year = (int)$today->format('Y');