Skip to content

Wrong datetime on history debug toolbar #1944

Description

@soft2u

When the application is installed on a location which contains numbers, the mechanism of extracting the timestamp from debugbar files will fail and the datetime will be same for all like in the bellow picture.
image
I found that the problem is in the /system/Debug/Toolbar/Collectors/History.php line 114, - $time = (int)$time[0][0]; should be $time = (int)end($time[0]); because preg_match_all('/\d+/', $filename, $time); will catch all group of digits.
In my case, the full path to debugbar files is /home/soft2u/public_html/c4/writable/debugbar/debugbar_1555148589.json
Also because of this, in the debug console, a javascript error is raised
image
image

Maybe someone can fix this.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions