forked from friendica/friendica
Replace Logger with DI::logger() in Util classes
This commit is contained in:
parent
9306a56da0
commit
0ce0aa4d2c
10 changed files with 101 additions and 107 deletions
|
|
@ -7,10 +7,10 @@
|
|||
|
||||
namespace Friendica\Util;
|
||||
|
||||
use Friendica\Core\Logger;
|
||||
use DateTime;
|
||||
use DateTimeZone;
|
||||
use Exception;
|
||||
use Friendica\DI;
|
||||
|
||||
/**
|
||||
* Temporal class
|
||||
|
|
@ -140,7 +140,7 @@ class DateTimeFormat
|
|||
try {
|
||||
$d = new DateTime(self::fix($s), $from_obj);
|
||||
} catch (\Throwable $e) {
|
||||
Logger::warning('DateTimeFormat::convert: exception: ' . $e->getMessage());
|
||||
DI::logger()->warning('DateTimeFormat::convert: exception: ' . $e->getMessage());
|
||||
$d = new DateTime('now', $from_obj);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue