|
|
@ -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); |
|
|
|
} |
|
|
|
} |
|
|
|