[vlc-commits] Oldhttp: use %Y-%m-%d instead of %F
Jean-Baptiste Kempf
git at videolan.org
Thu Feb 24 13:05:06 CET 2011
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Feb 24 13:01:43 2011 +0100| [cc5f14c8a86e5277dd023eb9f1798ca39b0735b1] | committer: Jean-Baptiste Kempf
Oldhttp: use %Y-%m-%d instead of %F
This is equivalent and better supported on Mingw
And, remove an outdated comment
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cc5f14c8a86e5277dd023eb9f1798ca39b0735b1
---
modules/control/http/mvar.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/modules/control/http/mvar.c b/modules/control/http/mvar.c
index 33ba6dc..89db173 100644
--- a/modules/control/http/mvar.c
+++ b/modules/control/http/mvar.c
@@ -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
More information about the vlc-commits
mailing list