Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP7:Update
glib2.18699
glib2-fix-6-days-until-the-end-of-the-month.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File glib2-fix-6-days-until-the-end-of-the-month.patch of Package glib2.18699
diff --git a/glib/gtimezone.c b/glib/gtimezone.c index ef67ec50b..0de5c92a3 100644 --- a/glib/gtimezone.c +++ b/glib/gtimezone.c @@ -1041,7 +1041,11 @@ find_relative_date (TimeZoneDate *buffer) /* week is 1 <= w <= 5, we need 0-based */ days = 7 * (buffer->week - 1) + wday - first_wday; - while (days > days_in_month) + /* "days" is a 0-based offset from the 1st of the month. + * Adding days == days_in_month would bring us into the next month, + * hence the ">=" instead of just ">". + */ + while (days >= days_in_month) days -= 7; g_date_add_days (&date, days);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor