From d65d747ad319e040bd08af388c1c9da6108098dc Mon Sep 17 00:00:00 2001 From: Celestora Date: Thu, 7 Oct 2021 12:29:30 +0300 Subject: [PATCH] Trim date in Service.getTime Signed-off-by: Celestora --- ServiceAPI/Service.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ServiceAPI/Service.php b/ServiceAPI/Service.php index 4e1ba0da..0c024925 100644 --- a/ServiceAPI/Service.php +++ b/ServiceAPI/Service.php @@ -14,7 +14,7 @@ class Service implements Handler function getTime(callable $resolve, callable $reject): void { - $resolve((new DateTime)->format("%e %B %G" . tr("time_at_sp") . "%X")); + $resolve(trim((new DateTime)->format("%e %B %G" . tr("time_at_sp") . "%X"))); } function getServerVersion(callable $resolve, callable $reject): void