Skip to content

change all day event to specific time #381

Closed Answered by jonas0b1011001
pupazzooo asked this question in Q&A
Discussion options

You must be logged in to vote

in my ics i have only all day event, so the function that the script performs is L255-265.

Seems like you are using an old version, mind updating so we speak of the same version?

plus I have some events that last several days and I still have to start at 5pm and finish at 6pm on the last day (the third)

var tzid = calendarTz;
icalEvent.startDate.isDate = false;
icalEvent.endDate.isDate = false;
newEvent = {
  start: {
    dateTime : icalEvent.startDate.adjust(0,17,0,0).toString(),
    timeZone : tzid
  },
  end: {
    dateTime : icalEvent.endDate.adjust(-1,18,0,0).toString(),
    timeZone : tzid
  }
};

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@pupazzooo
Comment options

@pupazzooo
Comment options

@pupazzooo
Comment options

@jonas0b1011001
Comment options

Answer selected by jonas0b1011001
@pupazzooo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants