Skip to content

Commit

Permalink
Making all log dates valid
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavs-gutmanis committed Jan 13, 2020
1 parent 23a3a9e commit 701877c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "solspace/craft3-commons",
"description": "Solspace Commons Library for Craft CMS 3 plugins",
"version": "1.0.23",
"version": "1.0.24",
"type": "library",
"license": "MIT",
"require": {
Expand Down
2 changes: 1 addition & 1 deletion src/Loggers/Parsers/LogLine.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class LogLine
*/
public function __construct(array $data)
{
$this->date = \DateTime::createFromFormat('Y-m-d H:i:s', $data['date']);
$this->date = new \DateTime($data['date']);
$this->logger = $data['logger'];
$this->level = $data['level'];
$this->message = $data['message'];
Expand Down

0 comments on commit 701877c

Please sign in to comment.