]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix empty local/gm time printed by the command 'sv_cmd time' on Windows (unsupported...
authorterencehill <piuntn@gmail.com>
Thu, 2 Aug 2018 12:51:29 +0000 (14:51 +0200)
committerterencehill <piuntn@gmail.com>
Thu, 2 Aug 2018 12:51:29 +0000 (14:51 +0200)
qcsrc/server/command/common.qc

index cb8ab239fbebd1ac74b4781982d3d93ed14f43ac..eb22080bb7de33a1184acb91d5f2e464509ed5c9 100644 (file)
@@ -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;
                }