]> git.mxchange.org Git - friendica.git/blobdiff - mod/events.php
Add Temporal::timezoneNow() shorthand for Temporal::convert()
[friendica.git] / mod / events.php
index 9462b36b0c8e81a50e5dfb3d4fde2c63f7deac47..aad56f43aac8a506a85587400967b9b79ebd3a05 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::convert('now', date_default_timezone_get(), 'UTC', 'Y');
-               $thismonth = Temporal::convert('now', date_default_timezone_get(), 'UTC', 'm');
+               $thisyear  = Temporal::timezoneNow(date_default_timezone_get(), 'Y');
+               $thismonth = Temporal::timezoneNow(date_default_timezone_get(), 'm');
                if (! $y) {
                        $y = intval($thisyear);
                }