summaryrefslogtreecommitdiff
path: root/devel/glib2/patches/patch-glib_gtimezone.c
blob: fde3356efb228b7476e8270c5b034b096a89070c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$NetBSD: patch-glib_gtimezone.c,v 1.2 2014/09/05 20:49:55 prlw1 Exp $

Bug 730332 - glib uses wrong timezone transition with zoneinfo 2014c

Patch from John Ralls.

--- glib/gtimezone.c.orig	2013-11-07 15:29:13.000000000 +0000
+++ glib/gtimezone.c
@@ -1558,7 +1558,11 @@ interval_end (GTimeZone *tz,
               guint      interval)
 {
   if (tz->transitions && interval < tz->transitions->len)
+  {
+    if ((TRANSITION(interval)).time == G_MININT64)
+      return G_MININT64;
     return (TRANSITION(interval)).time - 1;
+  }
   return G_MAXINT64;
 }