Skip to content

Commit e8cd7f6

Browse files
committed
Fix daylight saving time miscalculation in libglib2
1 parent b039d6f commit e8cd7f6

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff -Nura libglib2-2.52.3/glib/gtimezone.c libglib2-2.52.3.new/glib/gtimezone.c
2+
--- libglib2-2.52.3/glib/gtimezone.c 2018-03-02 10:27:49.000000000 +0100
3+
+++ libglib2-2.52.3.new/glib/gtimezone.c 2018-03-02 10:28:13.000000000 +0100
4+
@@ -772,7 +772,7 @@
5+
/* week is 1 <= w <= 5, we need 0-based */
6+
days = 7 * (buffer->week - 1) + wday - first_wday;
7+
8+
- while (days > days_in_month)
9+
+ while (days >= days_in_month)
10+
days -= 7;
11+
12+
g_date_add_days (&date, days);

0 commit comments

Comments
 (0)