diff --git a/gen_vor.php b/gen_vor.php index df1cebb..53aa9a4 100644 --- a/gen_vor.php +++ b/gen_vor.php @@ -10,7 +10,7 @@ $arr = ['| | | |', '|:------|:------|:------|']; $ts=(new DateTime('first day of this month'))->getTimeStamp(); $tues_ts = strtotime('fourth tuesday of this month + 1 day', $ts); -// Are we past the fourst Tuesday in the month? +// Are we past the fourst Tuesday in the month - if so, advance to next month if ((new DateTime())->getTimeStamp() >= $tues_ts) { $ts = strtotime('+1 month', $ts); }