From 32a4466b1e3ff66e1126a109d6bd8074993941d3 Mon Sep 17 00:00:00 2001 From: terencehill Date: Thu, 2 Aug 2018 14:51:29 +0200 Subject: [PATCH] Fix empty local/gm time printed by the command 'sv_cmd time' on Windows (unsupported %e); single digit day of the month is now preceded by a 0 instead of space --- qcsrc/server/command/common.qc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcsrc/server/command/common.qc b/qcsrc/server/command/common.qc index cb8ab239f..eb22080bb 100644 --- a/qcsrc/server/command/common.qc +++ b/qcsrc/server/command/common.qc @@ -632,8 +632,8 @@ void CommonCommand_time(float request, entity caller) print_to(caller, strcat("realtime = ", ftos(gettime(GETTIME_REALTIME)))); print_to(caller, strcat("hires = ", ftos(gettime(GETTIME_HIRES)))); print_to(caller, strcat("uptime = ", ftos(gettime(GETTIME_UPTIME)))); - print_to(caller, strcat("localtime = ", strftime(true, "%a %b %e %H:%M:%S %Z %Y"))); - print_to(caller, strcat("gmtime = ", strftime(false, "%a %b %e %H:%M:%S %Z %Y"))); + print_to(caller, strcat("localtime = ", strftime(true, "%a %b %d %H:%M:%S %Z %Y"))); + print_to(caller, strcat("gmtime = ", strftime(false, "%a %b %d %H:%M:%S %Z %Y"))); return; } -- 2.39.2