mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-05-28 04:36:06 -04:00
ObjectInspectionDetail: Fix incorrect float to string conversion
This commit is contained in:
parent
020139b472
commit
d6d4bd6bb8
1 changed files with 1 additions and 1 deletions
|
|
@ -232,7 +232,7 @@ abstract class ObjectInspectionDetail extends BaseHtmlElement
|
|||
}
|
||||
|
||||
if (is_float($ts)) {
|
||||
$dt = DateTime::createFromFormat('U.u', $ts);
|
||||
$dt = DateTime::createFromFormat('U.u', sprintf('%F', $ts));
|
||||
} else {
|
||||
$dt = (new DateTime())->setTimestamp($ts);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue