ar71xx: disable CONFIG_{I2C,SPI}_GPIO
[openwrt.git] / toolchain / uClibc / patches-0.9.32 / 970-dst_leap_months_fix.patch
1 From: Guillaume Bourcier <guillaumebourcier@...>
2
3 The algorithm computing daylight saving time incorrectly adds a day for
4 each month after January for leap years. The clock shift from/to DST can
5 be delayed if the last Sunday of a transition month is exactly seven
6 days before the first of the following month.
7
8 This change adds a day for the February month only.
9
10 Signed-off-by: Guillaume Bourcier <guillaumebourcier@...>
11 Signed-off-by: Richard Braun <rbraun@...>
12 ---
13 libc/misc/time/time.c | 2 +-
14 1 files changed, 1 insertions(+), 1 deletions(-)
15
16 diff --git a/libc/misc/time/time.c b/libc/misc/time/time.c
17 index 19d68e1..8e2ebf1 100644
18 --- a/libc/misc/time/time.c 2012-03-26 09:55:20.741069297 +0200
19 +++ b/libc/misc/time/time.c 2012-03-26 09:55:57.369068289 +0200
20 @@ -705,7 +705,7 @@
21 ++day;
22 }
23 monlen = 31 + day_cor[r->month -1] - day_cor[r->month];
24 - if (isleap && (r->month > 1)) {
25 + if (isleap && (r->month == 2)) {
26 ++monlen;
27 }
28 /* Wweekday (0 is Sunday) of 1st of the month
This page took 0.044931 seconds and 5 git commands to generate.