summaryrefslogtreecommitdiff
path: root/firmware/libc/mktime.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/libc/mktime.c')
-rw-r--r--firmware/libc/mktime.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/firmware/libc/mktime.c b/firmware/libc/mktime.c
index eaa017122a..822f12e6e8 100644
--- a/firmware/libc/mktime.c
+++ b/firmware/libc/mktime.c
@@ -40,7 +40,6 @@ time_t mktime(struct tm *t)
40 year -= 1; 40 year -= 1;
41 month += 12; 41 month += 12;
42 } 42 }
43 result = (year - 1970) * 365 + (year - 1969) / 4 + m_to_d[month];
44 result = (year - 1970) * 365 + m_to_d[month]; 43 result = (year - 1970) * 365 + m_to_d[month];
45 if (month <= 1) 44 if (month <= 1)
46 year -= 1; 45 year -= 1;