mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-26 10:06:10 +01:00
Switch to DateTimeImmutable everywhere
This commit is contained in:
@@ -37,7 +37,7 @@ class LogglyFormatter extends JsonFormatter
|
||||
*/
|
||||
public function format(array $record)
|
||||
{
|
||||
if (isset($record["datetime"]) && ($record["datetime"] instanceof \DateTime)) {
|
||||
if (isset($record["datetime"]) && ($record["datetime"] instanceof \DateTimeInterface)) {
|
||||
$record["timestamp"] = $record["datetime"]->format("Y-m-d\TH:i:s.uO");
|
||||
unset($record["datetime"]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user