summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2004-04-25 23:47:50 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2004-04-25 23:47:50 +0000
commit7662f06e5345d35711023bfc100ed90633a66362 (patch)
tree67a2ab05b7f4485102298cc64666a1205224adf3
parente0ae127b9a9bca5c97202a584dfc26d44dc3a3d1 (diff)
downloadrockbox-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
-rw-r--r--firmware/common/timefuncs.c2
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