Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/serverinfo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-07-07 11:06:49 +0300
committerGitHub <noreply@github.com>2020-07-07 11:06:49 +0300
commit2cee4a9bc59ce827070eb9f1d8df71ca82bf999f (patch)
treebc7bed4a747a4a5c1ee6eb262f93d51ab212c7a0
parentffa802234c66d9e087b4d44f59a5c41b77a3b327 (diff)
parent2e7e1aa4ea4f9112a81dfdc3a505c19ce48d098b (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.php4
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');
}