Ionic2-Calendar icon indicating copy to clipboard operation
Ionic2-Calendar copied to clipboard

Start Time, End Time, events BUG

Open jcmendes9898 opened this issue 5 years ago • 5 comments

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 avatar Nov 21 '19 09:11 jcmendes9898

@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));

twinssbc avatar Nov 21 '19 14:11 twinssbc

i have a problem with hour exibition i send 2020-02-27T09:00:00Z and the plugin show 2020-02-27T07:00:00Z

ojulianos avatar Feb 27 '20 18:02 ojulianos

@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.

twinssbc avatar Feb 28 '20 14:02 twinssbc

how to set 12AM column hour after 11PM normal day event view? image

shalini-github avatar Jul 28 '20 02:07 shalini-github

@shalini-github after 12AM, it's the next day, it's the first row.

twinssbc avatar Jul 29 '20 12:07 twinssbc