mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-18 19:31:02 +00:00
fixing defines.
This commit is contained in:
1 parent
ad50447ec6
commit
d4cd1c61ee
1 file changed
+2
-2
+2
-2
@@ -563,12 +563,12 @@ static void printdirentry(const char *name, void *userdata) {
|
|||||||
} else {
|
} else {
|
||||||
mg_snprintf(sz, sizeof(sz), "%lld", (uint64_t) size);
|
mg_snprintf(sz, sizeof(sz), "%lld", (uint64_t) size);
|
||||||
}
|
}
|
||||||
#if defined(MG_HTTP_LOCALTIME)
|
#if defined(MG_HTTP_DIRLIST_TIME)
|
||||||
char time_str[30];
|
char time_str[30];
|
||||||
struct tm * time_info = localtime(&t);
|
struct tm * time_info = localtime(&t);
|
||||||
strftime(time_str, sizeof time_str, "%Y/%m/%d %H:%M:%S", time_info);
|
strftime(time_str, sizeof time_str, "%Y/%m/%d %H:%M:%S", time_info);
|
||||||
mg_snprintf(mod, sizeof(mod), "%s", time_str);
|
mg_snprintf(mod, sizeof(mod), "%s", time_str);
|
||||||
#elif defined(MG_HTTP_UTC)
|
#elif defined(MG_HTTP_DIRLIST_TIME_UTC)
|
||||||
char time_str[30];
|
char time_str[30];
|
||||||
struct tm * time_info = gmtime(&t);
|
struct tm * time_info = gmtime(&t);
|
||||||
strftime(time_str, sizeof time_str, "%Y/%m/%d %H:%M:%S", time_info);
|
strftime(time_str, sizeof time_str, "%Y/%m/%d %H:%M:%S", time_info);
|
||||||
|
|||||||
Reference in new issue
Block a user