diff options
Diffstat (limited to 'test/run_storage.cxx')
-rw-r--r-- | test/run_storage.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/run_storage.cxx b/test/run_storage.cxx index ba889283f..a86444dd5 100644 --- a/test/run_storage.cxx +++ b/test/run_storage.cxx @@ -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; } |