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:
parent
e0ae127b9a
commit
7662f06e53
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue