Skip to content

Commit

Permalink
Update ServeCommand.php
Browse files Browse the repository at this point in the history
  • Loading branch information
levu42 committed Aug 2, 2023
1 parent 4e591ce commit de93523
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Illuminate/Foundation/Console/ServeCommand.php
Expand Up @@ -305,6 +305,8 @@ protected function getDateFromLine($line)
? '/^\[\d+]\s\[([a-zA-Z0-9: ]+)\]/'
: '/^\[([^\]]+)\]/';

$line = str_replace(' ', ' ', $line);

preg_match($regex, $line, $matches);

return Carbon::createFromFormat('D M d H:i:s Y', $matches[1]);
Expand Down

0 comments on commit de93523

Please sign in to comment.