diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2004-04-25 23:47:50 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2004-04-25 23:47:50 +0000 |
commit | 7662f06e5345d35711023bfc100ed90633a66362 (patch) | |
tree | 67a2ab05b7f4485102298cc64666a1205224adf3 /firmware | |
parent | e0ae127b9a9bca5c97202a584dfc26d44dc3a3d1 (diff) | |
download | rockbox-7662f06e5345d35711023bfc100ed90633a66362.tar.gz rockbox-7662f06e5345d35711023bfc100ed90633a66362.zip |
valid_time() now handles tm_wday correctly
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4555 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/common/timefuncs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/common/timefuncs.c b/firmware/common/timefuncs.c index e682454ce2..9d56126b17 100644 --- a/firmware/common/timefuncs.c +++ b/firmware/common/timefuncs.c | |||
@@ -34,7 +34,7 @@ bool valid_time(struct tm *tm) | |||
34 | tm->tm_min < 0 || tm->tm_min > 59 || | 34 | tm->tm_min < 0 || tm->tm_min > 59 || |
35 | tm->tm_year < 100 || tm->tm_year > 199 || | 35 | tm->tm_year < 100 || tm->tm_year > 199 || |
36 | tm->tm_mon < 0 || tm->tm_mon > 11 || | 36 | tm->tm_mon < 0 || tm->tm_mon > 11 || |
37 | tm->tm_wday < 1 || tm->tm_wday > 7 || | 37 | tm->tm_wday < 0 || tm->tm_wday > 6 || |
38 | tm->tm_mday < 1 || tm->tm_mday > 31) | 38 | tm->tm_mday < 1 || tm->tm_mday > 31) |
39 | return false; | 39 | return false; |
40 | else | 40 | else |