Skip to content

Commit 3a716a1

Browse files
authored
Fix datetime extraction from debugbar file
When the full path of debugbar file contains some digits, the first group of digits was extracted as timestamp and the datetime displayed in the Hisory toolbar was wrong.
1 parent d2465a8 commit 3a716a1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

system/Debug/Toolbar/Collectors/History.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public function setFiles(int $current, int $limit = 20)
111111
if (json_last_error() === JSON_ERROR_NONE)
112112
{
113113
preg_match_all('/\d+/', $filename, $time);
114-
$time = (int)$time[0][0];
114+
$time = (int)end($time[0]);
115115

116116
// Debugbar files shown in History Collector
117117
$files[] = [

0 commit comments

Comments
 (0)