From 2ea2ace374906b5e982e303fe1d5bdd7f90b0ef9 Mon Sep 17 00:00:00 2001 From: Christoph Date: Sat, 3 Jul 2021 10:34:57 +0200 Subject: [PATCH] Corrected gen_vor.php --- gen_vor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }