Skip to content

[Request] Modify All-Day Event Free/Busy Availability to be "Free" for All-Day events #423

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

You must be logged in to vote

Google's default all-day value is to set it as Free

I don't think that's true, the API docs list busy as standard value.


I'd suggest changing

GAS-ICS-Sync/Helpers.gs

Lines 479 to 483 in f5c8eb5

if (event.hasProperty('transp')){
var transparency = event.getFirstPropertyValue('transp').toString().toLowerCase();
if(["opaque", "transparent"].indexOf(transparency) > -1)
newEvent.transparency = transparency;
}

to

  if (icalEvent.startDate.isDate){
    newEvent.transparency = "transparent";
  }
  else if (event.hasProperty('transp')){
    var transparency = event.getFirstPropertyValue('transp').toString().toLowerCase();
    if(["opaque", "transparent"].in…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@mtemple
Comment options

Answer selected by mtemple
Comment options

You must be logged in to vote
0 replies
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