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');