Corrected gen_vor.php

master
Christoph 4 years ago
parent 52e290ef50
commit 2ea2ace374
  1. 2
      gen_vor.php

@ -10,7 +10,7 @@ $arr = ['| | | |', '|:------|:------|:------|'];
$ts=(new DateTime('first day of this month'))->getTimeStamp(); $ts=(new DateTime('first day of this month'))->getTimeStamp();
$tues_ts = strtotime('fourth tuesday of this month + 1 day', $ts); $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) { if ((new DateTime())->getTimeStamp() >= $tues_ts) {
$ts = strtotime('+1 month', $ts); $ts = strtotime('+1 month', $ts);
} }

Loading…
Cancel
Save