Fix to on this day
Thanks to my system messing up I thought it was working right.
This commit is contained in:
parent
ed6a537dc5
commit
24e7605c60
1 changed files with 3 additions and 0 deletions
|
@ -472,6 +472,8 @@ class Widget
|
||||||
// Set the start and end date to the beginning of the month
|
// Set the start and end date to the beginning of the month
|
||||||
$cutoffday = $dthen;
|
$cutoffday = $dthen;
|
||||||
$thisday = substr($dnow, 4);
|
$thisday = substr($dnow, 4);
|
||||||
|
$nextday = date('Y-m-d', strtotime($dnow. ' + 1 day'));
|
||||||
|
$nextday = substr($nextday, 4);
|
||||||
$dnow = substr($dnow, 0, 8) . '01';
|
$dnow = substr($dnow, 0, 8) . '01';
|
||||||
$dthen = substr($dthen, 0, 8) . '01';
|
$dthen = substr($dthen, 0, 8) . '01';
|
||||||
|
|
||||||
|
@ -517,6 +519,7 @@ class Widget
|
||||||
'$showmore' => DI::l10n()->t('show more'),
|
'$showmore' => DI::l10n()->t('show more'),
|
||||||
'$onthisdate' => DI::l10n()->t('On this date'),
|
'$onthisdate' => DI::l10n()->t('On this date'),
|
||||||
'$thisday' => $thisday,
|
'$thisday' => $thisday,
|
||||||
|
'$nextday' => $nextday,
|
||||||
'$cutoffday' => $cutoffday
|
'$cutoffday' => $cutoffday
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue