[california] Use proper week-of-month value for RRULE: Bug #738040
- From: Jim Nelson <jnelson src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [california] Use proper week-of-month value for RRULE: Bug #738040
- Date: Tue, 21 Oct 2014 22:48:54 +0000 (UTC)
commit 9b849d196bbb33a44355b55efc38fe4fbb61336f
Author: Jim Nelson <jim yorba org>
Date: Tue Oct 21 15:47:40 2014 -0700
Use proper week-of-month value for RRULE: Bug #738040
When calculating the day-of-the-week-of-the-month for RRULEs, was
using the day's *week's* position in the month, and not the day's
week-position in the month. Yes, the terminology is unfortunately
confusing.
src/host/host-create-update-recurring.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/host/host-create-update-recurring.vala b/src/host/host-create-update-recurring.vala
index 8db8719..f52f899 100644
--- a/src/host/host-create-update-recurring.vala
+++ b/src/host/host-create-update-recurring.vala
@@ -591,7 +591,7 @@ public class CreateUpdateRecurring : Gtk.Grid, Toolkit.Card {
if (repeats_combobox.active == Repeats.DAY_OF_THE_WEEK) {
// if > 4th week of month, use last week position indicator, since many months don't
// have more than 4 weeks
- int position = start_date.week_of(Calendar.System.first_of_week).week_of_month;
+ int position = start_date.day_of_month.week_of_month;
if (position > 4)
position = -1;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]