[gnome-calendar] recurrence: fix GDateTime to icaltime conversion
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] recurrence: fix GDateTime to icaltime conversion
- Date: Tue, 11 Jul 2017 01:37:45 +0000 (UTC)
commit 7ab4036335f16c7777df93b99faed605b5ee62e5
Author: Yash Singh <yashdev10p gmail com>
Date: Sun Jul 9 02:02:46 2017 +0530
recurrence: fix GDateTime to icaltime conversion
The month and year values extracted from until-date
of recurrences were accidentally interchanged.
This patch fixes that issue by making the correct assignment.
https://bugzilla.gnome.org/show_bug.cgi?id=782755
src/gcal-recurrence.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gcal-recurrence.c b/src/gcal-recurrence.c
index 04603e7..ee85e45 100644
--- a/src/gcal-recurrence.c
+++ b/src/gcal-recurrence.c
@@ -248,8 +248,8 @@ gcal_recurrence_to_rrule (GcalRecurrence *recur)
rrule->until.minute = g_date_time_get_minute (recur->limit.until);
rrule->until.hour = g_date_time_get_hour (recur->limit.until);
rrule->until.day = g_date_time_get_day_of_month (recur->limit.until);
- rrule->until.month = g_date_time_get_year (recur->limit.until);
- rrule->until.year = g_date_time_get_month (recur->limit.until);
+ rrule->until.month = g_date_time_get_month (recur->limit.until);
+ rrule->until.year = g_date_time_get_year (recur->limit.until);
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]