WazWaz / appdaemon-config

Custom widgets made for AppDaemon.
5 stars 1 forks source link

All Day Events #1

Open eracknaphobia opened 5 years ago

eracknaphobia commented 5 years ago

All day event are being placed in the day before the actual event. image

When Adding this console log as line 277 console.log(String(event.summary)+" - "+String(when)+" | "+String(whendate)+" | "+String(whendate0));

I get: Christmas Eve - 2018-12-24 | Sun Dec 23 2018 19:00:00 GMT-0500 (Eastern Standard Time) | Sun Dec 23 2018 00:00:00 GMT-0500 (Eastern Standard Time)

Seems like it's converting my EST event to GMT.

eracknaphobia commented 5 years ago

I fixed this by adding +"T12:00:00.000Z" to anyplace the date was set with just the month, day and year. There's probably a better way to do this but it was good enough for my use case.