Skip to content

Commit

Permalink
Update ServeCommand.php (#47931)
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Stascheck authored Aug 2, 2023
1 parent 4e591ce commit e9ad8c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Illuminate/Foundation/Console/ServeCommand.php
Original file line number Diff line number Diff line change
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 e9ad8c3

Please sign in to comment.