Ionic2-Calendar
Ionic2-Calendar copied to clipboard
Start Time, End Time, events BUG
this.addEventValue = new EventPush(); var date = new Date(2019, 9, 12) this.addEventValue.allDay = true; this.addEventValue.title = "Férias"; this.addEventValue.startTime = new Date(Date.UTC(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate())); this.addEventValue.endTime = new Date(Date.UTC(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate() + 1)); this.events.push(this.addEventValue)
with this code it adds the day before, (2019,9,11), it alsso happens for dates as (2019,8,10).
But in other days it works as just expected. Don't know if it is something related with the number of days that a month has. Pls, answer this issue, just to know that you read it and if you are or not working on it. Or if i am doing something wrong.
@jcmendes9898 You need to take the time difference into account. Also why not just set the date like below
this.addEventValue.startTime = new Date(Date.UTC(2019, 9, 12));
i have a problem with hour exibition i send 2020-02-27T09:00:00Z and the plugin show 2020-02-27T07:00:00Z
@ojulianos Could you provide more information? Are you creating normal event or all day event? Which timezone are you in? Maybe you could provide your code snippet.
how to set 12AM column hour after 11PM normal day event view?
@shalini-github after 12AM, it's the next day, it's the first row.