From 7bbad86af8ab86f51d45c403326ef14febb7bba2 Mon Sep 17 00:00:00 2001 From: Kalle Wallin Date: Thu, 9 Dec 2004 15:38:22 +0000 Subject: %time% format fix from Aurelien Foret (use %02d for seconds) git-svn-id: https://svn.musicpd.org/ncmpc/trunk@2786 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/strfsong.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/strfsong.c') diff --git a/src/strfsong.c b/src/strfsong.c index bac6d472f..4c2bf38d2 100644 --- a/src/strfsong.c +++ b/src/strfsong.c @@ -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); } -- cgit v1.2.3