Fixed gen_vor.php

master
Christoph 3 years ago
parent 044ab1812b
commit a957683819
  1. 2
      gen_vor.php

@ -8,7 +8,7 @@ $fil = file($file_txt, FILE_IGNORE_NEW_LINES);
// Insert header
$arr = ['| | | |', '|:------|:------|:------|'];
$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', $ts);
// Are we past the fourth Tuesday of the month?
if ((new DateTime())->getTimeStamp() >= $tues_ts) {

Loading…
Cancel
Save