Skip to content

Commit

Permalink
Set timezone here too.
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean committed Feb 19, 2025
1 parent 568ebc2 commit 4e6e003
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Entries/Entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,9 @@ public function date($date = null)
}

if (strlen($date) === 10) {
return Carbon::createFromFormat('Y-m-d', $date)->startOfDay();
return Carbon::createFromFormat('Y-m-d', $date)
->setTimezone('UTC')
->startOfDay();
}

if (strlen($date) === 15) {
Expand Down

0 comments on commit 4e6e003

Please sign in to comment.