tardate / jquery.addtocalendar

jQuery UI widget that provides "Add to Calendar" functionality. Supports an extensible range of calendar services - desktop and web-based
MIT License
93 stars 35 forks source link

Yahoo Calendar add errors if identical start/end time #6

Closed armahillo closed 12 years ago

armahillo commented 12 years ago

If a user specifies a start/end time that is the same (ie. an "all day event" with the default time set for both), I get an error for the duration calculation.

(minsDuration / 60).toPaddedString is not a function .../javascript/jquery.addtocal.js Line 48

While I agree that users PROBABLY shouldn't be allowed to do this, it seems like it would be triival to at least have this check for zero before attempting to divide.

armahillo commented 12 years ago

Disregard. I overlooked the rfc3339date.js file in the libs folder.