]> git.mxchange.org Git - friendica.git/blobdiff - src/Util/DateTimeFormat.php
Log function
[friendica.git] / src / Util / DateTimeFormat.php
index e293857acdd14a937fbc45b19bffe31fc4aecfce..8545cd07c43668ac938e16feff57135ebc425a31 100644 (file)
@@ -6,6 +6,7 @@
 
 namespace Friendica\Util;
 
+use Friendica\Core\Logger;
 use DateTime;
 use DateTimeZone;
 use Exception;
@@ -125,7 +126,7 @@ class DateTimeFormat
                try {
                        $d = new DateTime($s, $from_obj);
                } catch (Exception $e) {
-                       logger('DateTimeFormat::convert: exception: ' . $e->getMessage());
+                       Logger::log('DateTimeFormat::convert: exception: ' . $e->getMessage());
                        $d = new DateTime('now', $from_obj);
                }