jasonleibowitz / react-add-to-calendar-hoc

Simple Unopinionated React Add to Calendar Button. Bring your own components.
http://leibowitz.me/react-add-to-calendar-hoc/docs/
MIT License
70 stars 40 forks source link

ICal and Outlook Calendar not work for me . The link not open #60

Open oliver9321 opened 2 years ago

oliver9321 commented 2 years ago

Bug report

    const provider = description;
    const momentStartDate = moment(startDatetime);
    const startTime = momentStartDate.format('YYYYMMDDTHHmmssZ');
    const endTime = moment(endDatetime).format('YYYYMMDDTHHmmssZ');

    const event = {
        title: "Appointment - " + location,
        description: "Appointment with " + provider,
        location: location,
        duration: startTime === endTime && '0100',
        startDatetime: startTime.substring(0, startTime.indexOf('-')),
        endDatetime: endTime.substring(0, endTime.indexOf('-'))
    };

System information

Additional context

Add any other context about the problem here.