mirror of
https://github.com/friendica/friendica
synced 2025-04-24 23:50:20 +00:00
Log function
implement log() function.
This commit is contained in:
parent
d6d593d724
commit
14fde5dc9b
122 changed files with 1280 additions and 1161 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue