MMRIZE / CX3_Shared

shared library for CX3 series.
MIT License
0 stars 2 forks source link

Start Date = NaN #3

Closed cestorer closed 11 months ago

cestorer commented 11 months ago

I'm running into an error when determining of event is today on the line "ev.today = thisMoment.toISOString().split('T')[0] === new Date(+ev.startDate).toISOString().split('T')[0]" due to startDate getting set to NaN. This is breaking MMM-CalendarExt3 :(

image

ev data:

{
    "title": "today",
    "startDate": "2023-10-15T06:00:00.000Z",
    "endDate": "2023-10-16T04:59:59.000Z",
    "fullDayEvent": true,
    "location": false,
    "geo": false,
    "description": false,
    "today": true,
    "dayBeforeYesterday": false,
    "yesterday": false,
    "tomorrow": false,
    "dayAfterTomorrow": false,
    "symbol": [
        "fas fa-fw fa-calendar-alt"
    ],
    "calendarName": "test",
    "color": "#fff"
}
eouia commented 11 months ago

What is the event provider? default calendar module?