From: terencehill Date: Thu, 2 Aug 2018 12:51:29 +0000 (+0200) Subject: Fix empty local/gm time printed by the command 'sv_cmd time' on Windows (unsupported... X-Git-Tag: xonotic-v0.8.5~1941 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=32a4466b1e3ff66e1126a109d6bd8074993941d3;p=xonotic%2Fxonotic-data.pk3dir.git 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 --- 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; }