test/run_storage: fallback for %F on Windows
This commit is contained in:
		@@ -71,7 +71,12 @@ Ls(Storage &storage, const char *path)
 | 
				
			|||||||
		char mtime_buffer[32];
 | 
							char mtime_buffer[32];
 | 
				
			||||||
		const char *mtime = "          ";
 | 
							const char *mtime = "          ";
 | 
				
			||||||
		if (info.mtime > 0) {
 | 
							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));
 | 
									 gmtime(&info.mtime));
 | 
				
			||||||
			mtime = mtime_buffer;
 | 
								mtime = mtime_buffer;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user