]> git.sesse.net Git - vlc/commitdiff
Print complete date in EPG.
authorLaurent Aimar <fenrir@videolan.org>
Tue, 3 Mar 2009 21:44:41 +0000 (22:44 +0100)
committerLaurent Aimar <fenrir@videolan.org>
Tue, 3 Mar 2009 21:44:41 +0000 (22:44 +0100)
src/input/es_out.c

index e9d2116b6c0ab24e9851b3a4d0d6907957aa1a5c..5327dd74b53612bb87fb7d9721f82c08d1cc1150 100644 (file)
@@ -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,