fix third wendesday, again

This commit is contained in:
Nils 2025-02-19 22:06:21 +01:00
parent 2bc3bcdc1a
commit 558a0ba073

View File

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