summaryrefslogtreecommitdiff
path: root/firmware/common
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 /firmware/common
parente0ae127b9a9bca5c97202a584dfc26d44dc3a3d1 (diff)
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/common')
-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)
tm->tm_min < 0 || tm->tm_min > 59 ||
tm->tm_year < 100 || tm->tm_year > 199 ||
tm->tm_mon < 0 || tm->tm_mon > 11 ||
- tm->tm_wday < 1 || tm->tm_wday > 7 ||
+ tm->tm_wday < 0 || tm->tm_wday > 6 ||
tm->tm_mday < 1 || tm->tm_mday > 31)
return false;
else