Closed Bug 326787 Opened 19 years ago Closed 19 years ago

day/week view fails if event end is on next day [exception in getStartEndMinutesForOccurrence]

Categories

(Calendar :: Internal Components, defect)

x86
All
defect
Not set
major

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: ssitter, Assigned: ssitter)

References

Details

Attachments

(1 file, 1 obsolete file)

Day/week view fails if event end is on next day. (Sunbird and Lightning) 1. Create an event lasting 00:00 - 23:59 on the same day. 2. Change end date to the next day, e.g. 00:01. Actual result: Error in JavaScript console: --------------------------------------------------------------------- Error: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [calIDateTime.hour]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: chrome://calendar/content/ calendar-multiday-view.xml :: getStartEndMinutesForOccurrence :: line 537" data: no] --------------------------------------------------------------------- Afterwards Sunbird/Lightning can't be used anymore. Error occurs again during next startup because event is still in database. You have to edit storage.sdb or create a new profile to get rid of this.
Assignee: base → ssitter
Status: NEW → ASSIGNED
Attachment #211477 - Flags: first-review?(jminta)
*** Bug 326796 has been marked as a duplicate of this bug. ***
Comment on attachment 211477 [details] [diff] [review] clone startDate and endDate before altering Clone is expensive since it involves creating a new xpcom object. (getInTimezone is already going to do this, too.) I think we should probably just work with js-variables sHour, sMinute, eHour, and eMinute. Then we can reset those to 0 or 24 cheaply, as needed. Thoughts?
Attached patch use js variablesSplinter Review
This patch uses js variables as proposed by Joey.
Attachment #211490 - Flags: first-review?(jminta)
Comment on attachment 211490 [details] [diff] [review] use js variables Sweet! r=jminta
Attachment #211490 - Flags: first-review?(jminta) → first-review+
patch checked in.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Attachment #211477 - Attachment is obsolete: true
Attachment #211477 - Flags: first-review?(jminta)
verified with Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060927 Calendar/0.3a2+
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: