From f3e683bd6ff464295826e2e760c7a67588038a04 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 24 Feb 2018 22:27:15 +0100 Subject: test/run_storage: fallback for %F on Windows --- test/run_storage.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'test') 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; } -- cgit v1.2.3