Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
alies-dev authored and github-actions[bot] committed Feb 19, 2024
1 parent 176efde commit da41e7e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions src/Generators/BaseOutlook.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ public function generate(Link $link): string
$url .= '&startdt='.$link->from->format($this->dateFormat);
$url .= '&enddt='.$link->to->format($this->dateFormat);
$url .= '&allday=true';
}
else {
} else {
$url .= '&startdt='.(clone $link->from)->setTimezone(new DateTimeZone('UTC'))->format($this->dateTimeFormat);
$url .= '&enddt='.(clone $link->to)->setTimezone(new DateTimeZone('UTC'))->format($this->dateTimeFormat);
}
Expand Down
1 change: 0 additions & 1 deletion src/Generators/Google.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Spatie\CalendarLinks\Generators;

use DateTimeZone;
use Spatie\CalendarLinks\Generator;
use Spatie\CalendarLinks\Link;

Expand Down
1 change: 0 additions & 1 deletion tests/Generators/GoogleGeneratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ public function it_correctly_generates_all_day_events_by_dates(): void
}

/** @test */

public function it_correctly_generates_all_day_events_by_dates_diff_tz(): void
{
$this->assertMatchesSnapshot(
Expand Down

0 comments on commit da41e7e

Please sign in to comment.