]> git.mxchange.org Git - friendica.git/blobdiff - src/Util/DateTimeFormat.php
Fix legacy API
[friendica.git] / src / Util / DateTimeFormat.php
index fdb49dabdceeef7a1212b21b4ee7b245146d01ef..141fa37f6c3b70c7e87cc855cb5f189b3c55b8f4 100644 (file)
@@ -35,6 +35,7 @@ class DateTimeFormat
        const MYSQL = 'Y-m-d H:i:s';
        const HTTP  = 'D, d M Y H:i:s \G\M\T';
        const JSON  = 'Y-m-d\TH:i:s.v\Z';
+       const API   = 'D M d H:i:s +0000 Y';
 
        static $localTimezone = 'UTC';
 
@@ -157,7 +158,7 @@ class DateTimeFormat
                try {
                        $d = new DateTime($s, $from_obj);
                } catch (Exception $e) {
-                       Logger::log('DateTimeFormat::convert: exception: ' . $e->getMessage());
+                       Logger::notice('DateTimeFormat::convert: exception: ' . $e->getMessage());
                        $d = new DateTime('now', $from_obj);
                }