@@ -103,9 +103,9 @@ struct NotificationHelper {
103
103
} else if contact. preferenceIsWeekly ( ) || contact. preferenceIsMonthly ( ) {
104
104
components. hour = contact. notification_preference_hour
105
105
components. minute = contact. notification_preference_minute
106
- components. weekday = contact. notification_preference_weekday+ 1
106
+ components. weekday = contact. notification_preference_weekday
107
107
if contact. notification_preference_week_of_month != 0 {
108
- components. weekOfMonth = contact. notification_preference_week_of_month+ 1
108
+ components. weekOfMonth = contact. notification_preference_week_of_month
109
109
}
110
110
} else if contact. preferenceIsQuarterly ( ) {
111
111
print ( " Quarterly is handled separately by UNTimeIntervalNotificationTrigger. Fallthrough. " )
@@ -154,12 +154,11 @@ struct NotificationHelper {
154
154
} else if contact. preferenceIsWeekly ( ) {
155
155
dateComponents. hour = contact. notification_preference_hour
156
156
dateComponents. minute = contact. notification_preference_minute
157
- // weekday units are 1-7, I store them as 0-6 though. Need to add 1
158
- dateComponents. weekday = contact. notification_preference_weekday+ 1
157
+ dateComponents. weekday = contact. notification_preference_weekday
159
158
} else if contact. preferenceIsMonthly ( ) {
160
159
dateComponents. hour = contact. notification_preference_hour
161
160
dateComponents. minute = contact. notification_preference_minute
162
- dateComponents. weekday = contact. notification_preference_weekday+ 1
161
+ dateComponents. weekday = contact. notification_preference_weekday
163
162
dateComponents. weekOfMonth = contact. notification_preference_week_of_month
164
163
} else if contact. preferenceIsAnnually ( ) || contact. preferenceIsCustom ( ) {
165
164
if contact. preferenceIsAnnually ( ) {
0 commit comments