diff options
author | Morris Jobke <hey@morrisjobke.de> | 2020-07-07 11:06:49 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-07 11:06:49 +0300 |
commit | 2cee4a9bc59ce827070eb9f1d8df71ca82bf999f (patch) | |
tree | bc7bed4a747a4a5c1ee6eb262f93d51ab212c7a0 | |
parent | ffa802234c66d9e087b4d44f59a5c41b77a3b327 (diff) | |
parent | 2e7e1aa4ea4f9112a81dfdc3a505c19ce48d098b (diff) |
Merge pull request #221 from nextcloud/backport/220/stable19v19.0.1RC1v19.0.1
[stable19] Correct format for uptime is used
-rw-r--r-- | lib/Controller/ApiController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Controller/ApiController.php b/lib/Controller/ApiController.php index 2db227e..5b08a80 100644 --- a/lib/Controller/ApiController.php +++ b/lib/Controller/ApiController.php @@ -162,8 +162,8 @@ class ApiController extends OCSController { } $interval = $boot->diff(new \DateTime()); - if ($interval->d > 0) { - return $interval->format('%d days, %h hours, %i minutes, %s seconds'); + if ($interval->days > 0) { + return $interval->format('%a days, %h hours, %i minutes, %s seconds'); } return $interval->format('%h hours, %i minutes, %s seconds'); } |