Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong datetime on history debug toolbar #1944

Closed
soft2u opened this issue Apr 13, 2019 · 0 comments
Closed

Wrong datetime on history debug toolbar #1944

soft2u opened this issue Apr 13, 2019 · 0 comments

Comments

@soft2u
Copy link
Contributor

soft2u commented Apr 13, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants