Commit cc5f14c8 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Oldhttp: use %Y-%m-%d instead of %F

This is equivalent and better supported on Mingw
And, remove an outdated comment
parent 78ffe093
......@@ -595,9 +595,8 @@ mvar_t *mvar_FileSetNew( intf_thread_t *p_intf, char *name,
(int64_t)stat_info.st_size );
mvar_AppendNewVar( f, "size", psz_buf );
/* FIXME memory leak FIXME */
struct tm tm;
strftime( psz_buf, sizeof( psz_buf ), "%F %H:%M:%S",
strftime( psz_buf, sizeof( psz_buf ), "Y-%m-%d %H:%M:%S",
localtime_r( &stat_info.st_mtime, &tm ) );
mvar_AppendNewVar( f, "date", psz_buf );
#else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment