Closed Bug 278149 Opened 20 years ago Closed 20 years ago

calIRecurrenceInfo.getNextOccurrence should use > aStartTime

Categories

(Calendar :: Internal Components, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mvl, Assigned: mvl)

Details

Attachments

(1 file, 1 obsolete file)

88   // return the next display item for the event,
 89   // where the start time is >= aStartTime
 90   calIItemOccurrence getNextOccurrence (in calIDateTime aOccurrenceTime);

If that >= would be >, it would be easier to find the next occurence, since you
can pass in the start time of the previous occurence. You can use the end time,
but that will fail on overlapping items (a 1 hour item recurring every 15 minutes)
Attached patch patch (obsolete) — — Splinter Review
Assignee: vladimir → mvl
Status: NEW → ASSIGNED
Attachment #171146 - Flags: first-review?(vladimir)
Comment on attachment 171146 [details] [diff] [review]
patch

r=vladimir, looks good, land away
Attachment #171146 - Flags: first-review?(vladimir) → first-review+
Comment on attachment 171146 [details] [diff] [review]
patch

Er wait, it's late.. calRecurrenceDate.cpp and calRecurrenceDateSet.cpp need
the change as well.
Attachment #171146 - Flags: first-review+ → first-review-
Attached patch patch v2 — — Splinter Review
ok, patch updated.
Attachment #171146 - Attachment is obsolete: true
Attachment #171282 - Flags: first-review?(vladimir)
Comment on attachment 171282 [details] [diff] [review]
patch v2

r=me, please check in
Attachment #171282 - Flags: first-review?(vladimir) → first-review+
patch checked in
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: