[vlc-devel] commit: Print complete date in EPG. (Laurent Aimar )

git version control git at videolan.org
Tue Mar 3 22:58:45 CET 2009


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Tue Mar  3 22:44:41 2009 +0100| [00cca4f17989dd62a75e48539751f3aac63ecd84] | committer: Laurent Aimar 

Print complete date in EPG.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=00cca4f17989dd62a75e48539751f3aac63ecd84
---

 src/input/es_out.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/input/es_out.c b/src/input/es_out.c
index e9d2116..5327dd7 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -1292,7 +1292,9 @@ static void EsOutProgramEpg( es_out_t *out, int i_group, vlc_epg_t *p_epg )
 
         localtime_r( &t_start, &tm_start );
 
-        snprintf( psz_start, sizeof(psz_start), "%2.2d:%2.2d:%2.2d", tm_start.tm_hour, tm_start.tm_min, tm_start.tm_sec );
+        snprintf( psz_start, sizeof(psz_start), "%4.4d-%2.2d-%2.2d %2.2d:%2.2d:%2.2d",
+                  1900 + tm_start.tm_year, 1 + tm_start.tm_mon, tm_start.tm_mday,
+                  tm_start.tm_hour, tm_start.tm_min, tm_start.tm_sec );
         if( p_evt->psz_short_description || p_evt->psz_description )
             input_Control( p_input, INPUT_ADD_INFO, psz_epg, psz_start, "%s (%2.2d:%2.2d) - %s",
                            p_evt->psz_name,




More information about the vlc-devel mailing list