mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
public: crtlib: modify format of Q_timestamp TIME_FILENAME to make it sortable
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user