[PATCH 5/6] common/date.c: Fix off-by-one error
Sascha Hauer
s.hauer at pengutronix.de
Wed Jan 6 23:50:19 PST 2016
On Wed, Jan 06, 2016 at 10:17:34PM -0800, Andrey Smirnov wrote:
> As per http://pubs.opengroup.org/onlinepubs/007908775/xsh/time.h.html
> 'tm_wday' is zero indexed with zero representing Sunday, this is also
> corroborated by the code in rtc_time_to_tm() which used 4 to represent
> Thursday.
>
> Signed-off-by: Andrey Smirnov <andrew.smirnov at gmail.com>
> ---
> common/date.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
I squashed this into the original commit introducing this bug.
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list