]> git.mxchange.org Git - friendica.git/blobdiff - mod/ping.php
Add Temporal::timezoneNow() shorthand for Temporal::convert()
[friendica.git] / mod / ping.php
index dd0817d0af0ed63162819e3fbf5b940c099aa8a5..d26fc61befecf57c0bd7fd8815ed0896a459eaa9 100644 (file)
@@ -237,7 +237,7 @@ function ping_init(App $a)
                        $all_events = count($ev);
 
                        if ($all_events) {
-                               $str_now = Temporal::convert('now', $a->timezone, 'UTC', 'Y-m-d');
+                               $str_now = Temporal::timezoneNow($a->timezone, 'Y-m-d');
                                foreach ($ev as $x) {
                                        $bd = false;
                                        if ($x['type'] === 'birthday') {