Skip to content

Commit 9abdf1c

Browse files
use F instead of f in sprintf
Co-authored-by: John Paul E. Balandan, CPA <paulbalandan@gmail.com>
1 parent d1fb9da commit 9abdf1c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

system/Debug/Toolbar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ public function prepare(?RequestInterface $request = null, ?ResponseInterface $r
397397
helper('filesystem');
398398

399399
// Updated to microtime() so we can get history
400-
$time = Time::now()->format('U.u');
400+
$time = sprintf('%.6F', Time::now()->format('U.u'));
401401

402402
if (! is_dir(WRITEPATH . 'debugbar')) {
403403
mkdir(WRITEPATH . 'debugbar', 0777);

system/Debug/Toolbar/Collectors/History.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public function setFiles(string $current, int $limit = 20)
9090
$contents = @json_decode($contents);
9191
if (json_last_error() === JSON_ERROR_NONE) {
9292
preg_match('/debugbar_(.*)\.json$/s', $filename, $time);
93-
$time = sprintf('%.6f', $time[1] ?? 0);
93+
$time = sprintf('%.6F', $time[1] ?? 0);
9494

9595
// Debugbar files shown in History Collector
9696
$files[] = [

0 commit comments

Comments
 (0)