test/run_storage: fallback for %F on Windows
This commit is contained in:
parent
50ce0c0d9d
commit
f3e683bd6f
@ -71,7 +71,12 @@ Ls(Storage &storage, const char *path)
|
||||
char mtime_buffer[32];
|
||||
const char *mtime = " ";
|
||||
if (info.mtime > 0) {
|
||||
strftime(mtime_buffer, sizeof(mtime_buffer), "%F",
|
||||
strftime(mtime_buffer, sizeof(mtime_buffer),
|
||||
#ifdef _WIN32
|
||||
"%Y-%m-%d",
|
||||
#else
|
||||
"%F",
|
||||
#endif
|
||||
gmtime(&info.mtime));
|
||||
mtime = mtime_buffer;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user