Corrected gen_vor.php

master
Christoph 4 years ago
parent 2ea2ace374
commit acd46fde35
  1. 2
      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 - if so, advance to next month
// Are we past the fourst Tuesday in the month?
if ((new DateTime())->getTimeStamp() >= $tues_ts) {
$ts = strtotime('+1 month', $ts);
}

Loading…
Cancel
Save