]> git.mxchange.org Git - friendica.git/commitdiff
Fix to on this day
authoranubis2814 <57196483+anubis2814@users.noreply.github.com>
Fri, 9 Jun 2023 05:37:20 +0000 (01:37 -0400)
committerGitHub <noreply@github.com>
Fri, 9 Jun 2023 05:37:20 +0000 (01:37 -0400)
Thanks to my system messing up I thought it was working right.

src/Content/Widget.php

index 6b44a62eb7dbe9bb6cbdae91665e57c11b3e8f49..abb125027ab107e95dddee7dacd038ae9f6d6267 100644 (file)
@@ -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
                ]);