forked from len0rd/rockbox
Silly, Silly. There is no day/month 0.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3701 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
44ee2ab577
commit
66875e0f90
1 changed files with 2 additions and 2 deletions
|
|
@ -542,8 +542,8 @@ static bool timedate_set(void)
|
|||
timedate[1] < 0 || timedate[1] > 59 ||
|
||||
timedate[2] < 0 || timedate[2] > 59 ||
|
||||
timedate[3] < 0 || timedate[3] > 99 ||
|
||||
timedate[4] < 0 || timedate[4] > 12 ||
|
||||
timedate[5] < 0 || timedate[5] > 31)
|
||||
timedate[4] < 1 || timedate[4] > 12 ||
|
||||
timedate[5] < 1 || timedate[5] > 31)
|
||||
{
|
||||
/* hour */
|
||||
timedate[0] = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue