Skip to content

Commit

Permalink
Merge pull request #36 from maatien/dev
Browse files Browse the repository at this point in the history
Fix bug related to timezone change
  • Loading branch information
joshtorres authored Oct 18, 2024
2 parents 1bf9f42 + 944d13c commit 07d9d01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/LivewireCalendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ public function goToCurrentMonth()

public function calculateGridStartsEnds()
{
$this->gridStartsAt = $this->startsAt->clone()->startOfWeek($this->weekStartsAt);
$this->gridEndsAt = $this->endsAt->clone()->endOfWeek($this->weekEndsAt);
$this->gridStartsAt = $this->startsAt->clone()->startOfWeek($this->weekStartsAt)->shiftTimezone(config('app.timezone'));;
$this->gridEndsAt = $this->endsAt->clone()->endOfWeek($this->weekEndsAt)->shiftTimezone(config('app.timezone'));;
}

/**
Expand Down

0 comments on commit 07d9d01

Please sign in to comment.