moment-hijri icon indicating copy to clipboard operation
moment-hijri copied to clipboard

Uncaught TypeError: s.indexOf is not a function

Open zorzv opened this issue 4 years ago • 0 comments

I'm using moment to make a calendar and this line is throwing the above error:

ev.date = moment(ev.eventTime, "YYYY-MM-DD");

where eventTime is: {eventName: 'Interview - Jr. Web Developer', calendar: 'Work', color: 'orange', eventTime: moment("2020-05-16")},

The calendar works without moment-hijri dependency but I want to add hijri dates to the calendar.I haven't parsed hijri dates so far.

This line from moment-hijri.js is throwing the error:

string = string.slice(string.indexOf(parsedInput) + parsedInput.length)

zorzv avatar May 14 '20 17:05 zorzv