dtstart-zone))
(start-d (icalendar--datetime-to-diary-date
dtstart-dec))
- (start-t (icalendar--datetime-to-colontime dtstart-dec))
+ (start-t (and dtstart
+ (> (length dtstart) 8)
+ (icalendar--datetime-to-colontime dtstart-dec)))
(dtend (icalendar--get-event-property e 'DTEND))
(dtend-zone (icalendar--find-time-zone
(icalendar--get-event-property-attributes
(icalendar--get-event-property-attributes
e 'DTEND))
"DATE")))
- (icalendar--datetime-to-colontime dtend-dec)
- start-t))
+ (icalendar--datetime-to-colontime dtend-dec)))
(icalendar--dmsg "start-d: %s, end-d: %s" start-d end-d)
(cond
;; recurring event
"
))
+(ert-deftest icalendar-import-bug-33277 ()
+ ;;bug#33277 -- start time equals end time
+ (icalendar-tests--test-import
+ "DTSTART:20181105T200000Z
+DTSTAMP:20181105T181652Z
+DESCRIPTION:
+LAST-MODIFIED:20181105T181646Z
+LOCATION:
+SEQUENCE:0
+SUMMARY:event with same start/end time
+TRANSP:OPAQUE
+"
+
+ "&2018/11/5 21:00 event with same start/end time\n"
+ "&5/11/2018 21:00 event with same start/end time\n"
+ "&11/5/2018 21:00 event with same start/end time\n"
+ ))
+
(ert-deftest icalendar-import-multiple-vcalendars ()
(icalendar-tests--test-import
"DTSTART;VALUE=DATE:20110723