Re: [PATCH 5/6] common/date.c: Fix off-by-one error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
> ---
>  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 |

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux