diff options
Diffstat (limited to 'firmware/common/timefuncs.c')
-rw-r--r-- | firmware/common/timefuncs.c | 2 |
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 |