Don't call format on an empty string and only pass the integer part of it

pull/3588/head
Isaac Connor 2022-08-10 15:30:36 -04:00
parent 2922202355
commit fcccf33cf6
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ function queryRequest() {
global $dateTimeFormatter;
foreach ($results as $row) {
$row['DateTime'] = $dateTimeFormatter->format($row['TimeKey']);
$row['DateTime'] = empty($row['TimeKey']) ? '' : $dateTimeFormatter->format(intval($row['TimeKey']));
$Server = ZM\Server::find_one(array('Id'=>$row['ServerId']));
$row['Server'] = $Server ? $Server->Name() : '';