Skip to content

Commit

Permalink
Merge pull request #132 from joostdebruijn/joost/feat-add-ms-cdo-alld…
Browse files Browse the repository at this point in the history
…ayevent

feat: improved compatibility all day events for Microsoft products
  • Loading branch information
freekmurze authored May 16, 2024
2 parents cb37b03 + 14f8ec1 commit 9e78bcb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Components/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,10 @@ private function resolveProperties(ComponentPayload $payload): self
$this->transparent,
fn () => TextProperty::create('TRANSP', 'TRANSPARENT')
)
->optional(
$this->isFullDay,
fn () => TextProperty::create('X-MICROSOFT-CDO-ALLDAYEVENT', 'TRUE')
)
->optional(
$this->organizer,
fn () => CalendarAddressProperty::create('ORGANIZER', $this->organizer)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ BEGIN:VEVENT
UID:uuid_2
DTSTAMP:20190306T150000Z
SUMMARY:Laracon online
X-MICROSOFT-CDO-ALLDAYEVENT:TRUE
DTSTART;VALUE=DATE:20190306
DTEND;VALUE=DATE:20190307
END:VEVENT
Expand Down

0 comments on commit 9e78bcb

Please sign in to comment.