diff options
author | Simon Rettberg | 2017-12-04 18:25:09 +0100 |
---|---|---|
committer | Simon Rettberg | 2017-12-04 18:25:09 +0100 |
commit | 5f1abf31f333ce1e70af85cc85681468664d2d75 (patch) | |
tree | 81d58ee0319990431bef96d2362b1e4a5da2f102 /modules-available | |
parent | Update translations (diff) | |
download | slx-admin-5f1abf31f333ce1e70af85cc85681468664d2d75.tar.gz slx-admin-5f1abf31f333ce1e70af85cc85681468664d2d75.tar.xz slx-admin-5f1abf31f333ce1e70af85cc85681468664d2d75.zip |
[inc/Util] prettyTime: return '???' if given timestamp is 0 or not a number
Diffstat (limited to 'modules-available')
-rw-r--r-- | modules-available/dnbd3/hooks/main-warning.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/dnbd3/hooks/main-warning.inc.php b/modules-available/dnbd3/hooks/main-warning.inc.php index 258d03d0..e38048e1 100644 --- a/modules-available/dnbd3/hooks/main-warning.inc.php +++ b/modules-available/dnbd3/hooks/main-warning.inc.php @@ -8,7 +8,7 @@ if (Dnbd3::isEnabled()) { while ($row = $res->fetch(PDO::FETCH_ASSOC)) { $error = $row['errormsg'] ? $row['errormsg'] : '<unknown error>'; - $lastSeen = date('d.m.Y H:i', $row['dnbd3lastseen']); + $lastSeen = Util::prettyTime($row['dnbd3lastseen']); if ($row['fixedip'] === '<self>') { Message::addError('dnbd3.main-dnbd3-unreachable', true, $error, $lastSeen); continue; |