diff options
author | Max Kellermann <max@musicpd.org> | 2018-02-24 23:16:06 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2018-02-24 23:16:06 +0100 |
commit | b30a510b45d7ddf10fe0a706ef35343ad0938b9c (patch) | |
tree | 40204121fe833526c6f4ef9c05d91c825e86c1cf /test | |
parent | 9f6af4f2cc1f806bbbd32b18f64beb01a218cb6d (diff) | |
parent | 0ebeaa9ac266ed112f21c0f961b76d441f422e4f (diff) |
Merge tag 'v0.20.18'
release v0.20.18
Diffstat (limited to 'test')
-rw-r--r-- | test/run_storage.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/run_storage.cxx b/test/run_storage.cxx index 3d987f541..1ab8d625d 100644 --- a/test/run_storage.cxx +++ b/test/run_storage.cxx @@ -23,6 +23,7 @@ #include "storage/Registry.hxx" #include "storage/StorageInterface.hxx" #include "storage/FileInfo.hxx" +#include "net/Init.hxx" #include "util/ChronoUtil.hxx" #include <memory> @@ -72,7 +73,12 @@ Ls(Storage &storage, const char *path) const char *mtime = " "; if (!IsNegative(info.mtime)) { time_t t = std::chrono::system_clock::to_time_t(info.mtime); - strftime(mtime_buffer, sizeof(mtime_buffer), "%F", + strftime(mtime_buffer, sizeof(mtime_buffer), +#ifdef _WIN32 + "%Y-%m-%d", +#else + "%F", +#endif gmtime(&t)); mtime = mtime_buffer; } @@ -96,6 +102,7 @@ try { const char *const command = argv[1]; const char *const storage_uri = argv[2]; + const ScopeNetInit net_init; EventThread io_thread; io_thread.Start(); |