Closed Bug 1196455 Opened 9 years ago Closed 9 years ago

Can not set absolute alarm that is before the event starts

Categories

(Calendar :: Provider: GData, defect, P1)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Fallen, Assigned: Fallen)

References

Details

Attachments

(1 file, 1 obsolete file)

Looks like there is a sign error somewhere. The "...only allows reminders up to 4 weeks before the event starts" shows up when setting an absolute reminder that is before the event starts. The message goes away when you set the absolute date to after the event starts.
Attached patch Fix - v1 (obsolete) β€” β€” Splinter Review
Attachment #8660489 - Flags: review?(makemyday)
Comment on attachment 8660489 [details] [diff] [review]
Fix - v1

Review of attachment 8660489 [details] [diff] [review]:
-----------------------------------------------------------------

r+, but please check the comment below.

::: calendar/test/unit/test_alarmutils.js
@@ +193,5 @@
> +    alarm.related = alarm.ALARM_RELATED_ABSOLUTE;
> +    alarm.alarmDate = cal.createDateTime("20150815T110000");
> +    equal(calculateAlarmOffset(alarm).icalString, "-PT1H");
> +    equal(calculateAlarmOffset(alarm, alarm.ALARM_RELATED_START).icalString, "-PT1H");
> +    equal(calculateAlarmOffset(alarm, alarm.ALARM_RELATED_END).icalString, "-PT2H");

Why do you test this block twice - it's the same as above?
Attachment #8660489 - Flags: review?(makemyday) → review+
Attached patch Fix - v2 β€” β€” Splinter Review
Good catch. I've also removed the window dump pref that was there for debugging.
Attachment #8660489 - Attachment is obsolete: true
Attachment #8672424 - Flags: review+
https://hg.mozilla.org/comm-central/rev/4ab843365b56a3aaa4e21d25e8ba1ef072421014
Bug 1196455 - Can not set absolute alarm that is before the event starts. r=MakeMyDay a=aleth
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → 4.5
Target Milestone: 4.5 → 4.7
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: