1
0
Fork 0
forked from len0rd/rockbox

tm_mon starts at 0

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3173 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Björn Stenberg 2003-01-27 14:43:32 +00:00
parent a9b04beba4
commit b8f5759d96
2 changed files with 4 additions and 4 deletions

View file

@ -143,7 +143,7 @@ static char *create_filename(void)
/* Create a filename: RYYMMDDHHMMSS.mp3 */
snprintf(fname, 32, "/R%02d%02d%02d%02d%02d%02d.mp3",
tm->tm_year%100, tm->tm_mon, tm->tm_mday,
tm->tm_year%100, tm->tm_mon+1, tm->tm_mday,
tm->tm_hour, tm->tm_min, tm->tm_sec);
DEBUGF("Filename: %s\n", fname);