Home
last modified time | relevance | path

Searched hist:95206135 (Results 1 – 1 of 1) sorted by relevance

/openbmc/u-boot/drivers/rtc/
H A Drtc-lib.c95206135 Sat Dec 01 16:14:10 CST 2018 Heinrich Schuchardt <xypron.glpk@gmx.de> drivers: rtc: correctly convert seconds to time structure

Variable 'days' must be defined as signed int. Otherwise the conversion
fails for some dates, e.g. 2004-08-25. Cf function rtc_time64_to_tm() in
the Linux kernel source.

Fixes: 992c1db45591 "drivers: rtc: resolve year 2038 problem in rtc_to_tm"
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>