diff options
Diffstat (limited to 'firmware/libc/gmtime.c')
-rw-r--r-- | firmware/libc/gmtime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/libc/gmtime.c b/firmware/libc/gmtime.c index b6f75e2e51..e7ebdf0d90 100644 --- a/firmware/libc/gmtime.c +++ b/firmware/libc/gmtime.c | |||
@@ -53,7 +53,7 @@ struct tm *gmtime_r(const time_t *timep, struct tm *tm) | |||
53 | int year, i, mday, hour, min; | 53 | int year, i, mday, hour, min; |
54 | 54 | ||
55 | /* weekday */ | 55 | /* weekday */ |
56 | tm->tm_wday = ((seconds % WEEK_SECONDS) / DAY_SECONDS + 4) % 7; | 56 | tm->tm_wday = (seconds / DAY_SECONDS + 4) % 7; |
57 | 57 | ||
58 | /* Year */ | 58 | /* Year */ |
59 | year = 1970; | 59 | year = 1970; |