Trim date in Service.getTime

Signed-off-by: Celestora <kitsuruko@gmail.com>
This commit is contained in:
Celestora 2021-10-07 12:29:30 +03:00
parent d185e65a78
commit d65d747ad3

View file

@ -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