summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2012-03-12 08:50:10 +0100
committerBertrik Sikken <bertrik@sikken.nl>2012-03-12 08:50:10 +0100
commit16a95618de709caeca45a34f2649d6cfd6a66d5f (patch)
treee150b6f380b600e3ff9858c42ead94fadcf3424e /firmware
parent01397c4ff156013c22f1348a7ff1659a4d50f9ae (diff)
fix year calculation in gmtime
Change-Id: I9a5f29ad73b5620096d38874c70351db9bd90062
Diffstat (limited to 'firmware')
-rw-r--r--firmware/libc/gmtime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/libc/gmtime.c b/firmware/libc/gmtime.c
index 89960ce83b..b6f75e2e51 100644
--- a/firmware/libc/gmtime.c
+++ b/firmware/libc/gmtime.c
@@ -77,7 +77,7 @@ struct tm *gmtime_r(const time_t *timep, struct tm *tm)
seconds -= YEAR_SECONDS;
}
}
- tm->tm_year = year%100 + 100;
+ tm->tm_year = year - 1900;
/* Month */
for (i = 0; i < 12; i++)