mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-09 02:46:16 +01:00
gtimezone: port to tzcode 2014c
Problem reported by Marien Zwart in: https://gitlab.gnome.org/GNOME/glib/issues/878 Derived from a fix by John Ralls proposed in that bug report.
This commit is contained in:
parent
ad957b6630
commit
137dd7789b
@ -1677,7 +1677,10 @@ interval_end (GTimeZone *tz,
|
||||
guint interval)
|
||||
{
|
||||
if (tz->transitions && interval < tz->transitions->len)
|
||||
return (TRANSITION(interval)).time - 1;
|
||||
{
|
||||
gint64 lim = (TRANSITION(interval)).time;
|
||||
return lim - (lim != G_MININT64);
|
||||
}
|
||||
return G_MAXINT64;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user