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:
Diffstat (limited to 'lib/Controller/ApiController.php')
-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');
}