jasonleibowitz/react-add-to-calendar-hoc

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

oliver9321 opened this issue · 0 comments

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

  • OS: Windows

Additional context

Add any other context about the problem here.