mirror of
https://codeberg.org/Sonoj/osamc.de
synced 2025-02-22 04:18:22 +01:00
fix third wendesday, again
This commit is contained in:
parent
2bc3bcdc1a
commit
558a0ba073
@ -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');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user