From 1c6eb85a126e7ef7d8e4b647d3e6bfd16b472fe5 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Mon, 19 Jan 2026 22:33:49 +0500 Subject: [PATCH] public: crtlib: modify format of Q_timestamp TIME_FILENAME to make it sortable --- public/crtlib.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/crtlib.c b/public/crtlib.c index 6657128c..35526a1f 100644 --- a/public/crtlib.c +++ b/public/crtlib.c @@ -298,7 +298,8 @@ const char* Q_timestamp( int format ) break; case TIME_FILENAME: // Build a timestamp that can use for filename (ex: "Nov2006-26 (19.14.28)"); - strftime( timestamp, sizeof( timestamp ), "%b%Y-%d_%H.%M.%S", crt_tm ); + // a1ba: reordered to make it sortable -> 2006-10-26_19.24.28 + strftime( timestamp, sizeof( timestamp ), "%Y-%m-%d_%H.%M.%S", crt_tm ); break; default: Q_snprintf( timestamp, sizeof( timestamp ), "%s: unknown format %d", __func__, format );