diff options
author | Björn Stenberg <bjorn@haxx.se> | 2003-01-27 14:24:40 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2003-01-27 14:24:40 +0000 |
commit | cc11e885d1ab32f11b322071260376de3788c62e (patch) | |
tree | 3b790f616946cc6d4ff6b4fa424cedb2fc813467 /apps/recorder | |
parent | 8ed1a3a409fadf5c5f45dce7fc4c697d9d290626 (diff) | |
download | rockbox-cc11e885d1ab32f11b322071260376de3788c62e.tar.gz rockbox-cc11e885d1ab32f11b322071260376de3788c62e.zip |
Corrected get_time(). This should fix the bad file date bug. Also changed status.c to use get_time() instead of reading directly from RTC.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3170 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder')
-rw-r--r-- | apps/recorder/recording.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c index 73b2773e44..adcea752d4 100644 --- a/apps/recorder/recording.c +++ b/apps/recorder/recording.c | |||
@@ -143,7 +143,7 @@ static char *create_filename(void) | |||
143 | 143 | ||
144 | /* Create a filename: RYYMMDDHHMMSS.mp3 */ | 144 | /* Create a filename: RYYMMDDHHMMSS.mp3 */ |
145 | snprintf(fname, 32, "/R%02d%02d%02d%02d%02d%02d.mp3", | 145 | snprintf(fname, 32, "/R%02d%02d%02d%02d%02d%02d.mp3", |
146 | tm->tm_year-2000, tm->tm_mon, tm->tm_mday, | 146 | tm->tm_year%100, tm->tm_mon, tm->tm_mday, |
147 | tm->tm_hour, tm->tm_min, tm->tm_sec); | 147 | tm->tm_hour, tm->tm_min, tm->tm_sec); |
148 | 148 | ||
149 | DEBUGF("Filename: %s\n", fname); | 149 | DEBUGF("Filename: %s\n", fname); |