rjhorniii / ical2org

Convert a calendar in ICal format (e.g., .ics) into org-mode structure
GNU General Public License v3.0
55 stars 15 forks source link

Wrong date parsing #24

Open jschaeff opened 2 years ago

jschaeff commented 2 years ago

Hello,

thank you for this program, very nice !

Can you help me figure out why the output date is wrong in this ICS:

BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//AMADEUS//NONSGML Itinerary/

BEGIN:VEVENT
CLASS:PUBLIC
DTSTAMP:20211013T093000Z
UID:WLSFNK_PNRCAR1_20211013T093000Z
DTSTART: 20211114T180000
DTEND: 20211118T080000
SUMMARY: Voiture , 14 Novembre 2021 - 18 Novembre 2021
LOCATION:Lyon
DESCRIPTION:Ref. de dossier: WLSFNK\n
 Adr depart: 18:00 - 14 Novembre 2021\n
 Adr depart Adresse: Lyon\n
 Adr retour: 08:00 - 18 Novembre 2021\n
 Etat de la reservation: Demande\n
 Type de véhicule: Economy, Voiture ( 2 ou 4 portes )\n
 Type de véhicule: Manuelle, Air conditionne\n
 Additional Info: The scheduler data (ics data) will be changed automatically to the time
 (zone) the scheduler or smart phone is configured for\n
 Disclaimer: Calender date and time is for indicative purpose only. To get exact informat
 ion on your booking, please contact your provider.\n
END:VEVENT
END:VCALENDAR

outputs:

*  Voiture , 14 Novembre 2021 - 18 Novembre 2021 <0001-01-01 00:00>
  :ICALCONTENTS:
  :ORGUID: 6649ff6431361f2dc03d23fa5aa78034
  :ORIGINAL-UID: WLSFNK_PNRCAR1_20211013T093000Z
  :DTSTART: 0001-01-01 00:00
  :DTEND: 0001-01-01 00:00
  :DTSTAMP: 2021-10-13 09:30
  :ORGANIZER: <nil>
  :TZIDS: 
  :RRULE: 
  :END: