]> git.mxchange.org Git - friendica.git/blobdiff - mod/events.php
Add Temporal::localNow() shorthand for Temporal::convert()
[friendica.git] / mod / events.php
index aad56f43aac8a506a85587400967b9b79ebd3a05..028e23e51f3f714376f26fe4e9a8f2262064b0d6 100644 (file)
@@ -276,8 +276,8 @@ function events_content(App $a) {
        // The view mode part is similiar to /mod/cal.php
        if ($mode == 'view') {
 
-               $thisyear  = Temporal::timezoneNow(date_default_timezone_get(), 'Y');
-               $thismonth = Temporal::timezoneNow(date_default_timezone_get(), 'm');
+               $thisyear  = Temporal::localNow('Y');
+               $thismonth = Temporal::localNow('m');
                if (! $y) {
                        $y = intval($thisyear);
                }