Code

%time% format fix from Aurelien Foret (use %02d for seconds)
authorKalle Wallin <kaw@linux.se>
Thu, 9 Dec 2004 15:38:22 +0000 (15:38 +0000)
committerKalle Wallin <kaw@linux.se>
Thu, 9 Dec 2004 15:38:22 +0000 (15:38 +0000)
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@2786 09075e82-0dd4-0310-85a5-a0d7c8717e4f

src/strfsong.c

index bac6d472f734fe8df06e8119382bbddb258074c3..4c2bf38d266fbe1ba9e1dca0b5828fc6d9dcc78a 100644 (file)
@@ -184,7 +184,7 @@ _strfsong(gchar *s,
       else if (strncmp("%time%", p, n) == 0)
        {
          if (song->time != MPD_SONG_NO_TIME) 
-           temp = g_strdup_printf("%d:%d", 
+           temp = g_strdup_printf("%d:%02d", 
                                   song->time / 60, 
                                   song->time % 60 + 1);
        }