Skip to content

Commit 27cffd5

Browse files
Fix parseDateTime in Log class
1 parent 04c0a04 commit 27cffd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Logs/Log.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ protected function parseText(array &$matches = []): void
107107

108108
protected function fillMatches(array $matches = []): void
109109
{
110-
$datetime = static::parseDateTime($matches['datetime'] ?? null);
110+
$datetime = static::parseDateTime($matches[static::$regexDatetimeKey] ?? null);
111111
$timezone = config('log-viewer.timezone', config('app.timezone', 'UTC')) ?? 'UTC';
112112
$this->datetime = $datetime?->setTimezone($timezone);
113113

0 commit comments

Comments
 (0)