Skip to content

Commit ce861de

Browse files
authored
Fix #356 Fixed error "implicit conversion from float" in debug panel
1 parent 5049371 commit ce861de

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Yii Framework 2 mongodb extension Change Log
44
3.0.1 under development
55
-----------------------
66

7-
- no changes in this release.
7+
- Bug #356 Fixed error "implicit conversion from float" in debug panel (squio)
88

99

1010
3.0.0 September 04, 2022

src/debug/views/detail.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
'label' => 'Time',
2222
'value' => function ($data) {
2323
$timeInSeconds = $data['timestamp'] / 1000;
24-
$millisecondsDiff = (int) (($timeInSeconds - (int) $timeInSeconds) * 1000);
24+
$millisecondsDiff = (int) (($timeInSeconds - floor($timeInSeconds)) * 1000);
2525

26-
return date('H:i:s.', $timeInSeconds) . sprintf('%03d', $millisecondsDiff);
26+
return date('H:i:s.', floor($timeInSeconds)) . sprintf('%03d', $millisecondsDiff);
2727
},
2828
'headerOptions' => [
2929
'class' => 'sort-numerical'

0 commit comments

Comments
 (0)