]> git.mxchange.org Git - friendica.git/blobdiff - mod/cal.php
Add Temporal::localNow() shorthand for Temporal::convert()
[friendica.git] / mod / cal.php
index 11a1a5e6f99deba1b4c0cf172d47f61b607eb3e6..d48ce1c5e8c682fd819c5cd3e23baeadbfd2aa53 100644 (file)
@@ -152,8 +152,8 @@ function cal_content(App $a)
 
        // The view mode part is similiar to /mod/events.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);
                }