diff --git a/src/Generators/Google.php b/src/Generators/Google.php index ec3eb71..5543ac2 100644 --- a/src/Generators/Google.php +++ b/src/Generators/Google.php @@ -38,8 +38,11 @@ public function generate(Link $link): string $dateTimeFormat = $link->allDay ? self::DATE_FORMAT : self::DATETIME_FORMAT; $url .= '&dates='.$link->from->format($dateTimeFormat).'/'.$link->to->format($dateTimeFormat); - $url .= '&ctz=' . $link->from->getTimezone()->getName(); $url .= '&text='.urlencode($link->title); + + if (!$link->allDay) { + $url .= '&ctz=' . $link->from->getTimezone()->getName(); + } if ($link->description) { $url .= '&details='.urlencode($link->description);