From 24e7605c603bc2a82975733175eba2d3f3433c9e Mon Sep 17 00:00:00 2001 From: anubis2814 <57196483+anubis2814@users.noreply.github.com> Date: Fri, 9 Jun 2023 01:37:20 -0400 Subject: [PATCH 1/3] Fix to on this day Thanks to my system messing up I thought it was working right. --- src/Content/Widget.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Content/Widget.php b/src/Content/Widget.php index 6b44a62eb7..abb125027a 100644 --- a/src/Content/Widget.php +++ b/src/Content/Widget.php @@ -472,6 +472,8 @@ class Widget // Set the start and end date to the beginning of the month $cutoffday = $dthen; $thisday = substr($dnow, 4); + $nextday = date('Y-m-d', strtotime($dnow. ' + 1 day')); + $nextday = substr($nextday, 4); $dnow = substr($dnow, 0, 8) . '01'; $dthen = substr($dthen, 0, 8) . '01'; @@ -517,6 +519,7 @@ class Widget '$showmore' => DI::l10n()->t('show more'), '$onthisdate' => DI::l10n()->t('On this date'), '$thisday' => $thisday, + '$nextday' => $nextday, '$cutoffday' => $cutoffday ]); From 14b83def602fd529fd9cdac1eccef6a01a87167b Mon Sep 17 00:00:00 2001 From: anubis2814 <57196483+anubis2814@users.noreply.github.com> Date: Fri, 9 Jun 2023 01:39:07 -0400 Subject: [PATCH 2/3] Fix to on this day --- view/templates/widget/posted_date.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view/templates/widget/posted_date.tpl b/view/templates/widget/posted_date.tpl index a488cc8065..3c2380c60d 100644 --- a/view/templates/widget/posted_date.tpl +++ b/view/templates/widget/posted_date.tpl @@ -33,7 +33,7 @@ function showHideDates() {