vecnehladny / ubersicht-ios-clock-upnext-weather

A simple iOS styled widget section for Übersicht
10 stars 4 forks source link

All Day Events Appearing as "undefined" #7

Open lcsbckls opened 2 years ago

lcsbckls commented 2 years ago

I'm not entirely sure how to fix this issues that seems to stem from these lines and those similar for "tomorrow" and "day after tomorrow". Any guidance to display "all day" instead of "undefined" would be appreciated. Thanks.

` else if(lines[i].event.location.includes('today')&&!lines[i].event.time.includes('at')) lines[i].event.location = lines[i].event.time.replace("today ","") lines[i].event.time = "Whole - Day"

lines[i].event.name = lines[i].event.name.replace(/([A-z]*)/i, "")

        lines[i].event.time = lines[i].event.time.split(' - ')
        today.push(lines[i].event)
        continue`