valid_time() now handles tm_wday correctly

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4555 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2004-04-25 23:47:50 +00:00
parent e0ae127b9a
commit 7662f06e53

View file

@ -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