OK, so I have a Tasks model and times really aren't important, due_date is casted as 'date:Y-m-d'. The problem though is that when you localize a date on output or even if you dont, if you created a task for Today, its stored as 2023-03-20 00:00:00 and because of that where were in North America, that localized date is now 2023-03-19 17:00:00, etc. Now this is an existing app, so have existing data. So if you create it today, its already past due, etc. Hope I am making sense. How should i go about tackling this? This is the current code they (us, I am new to the project) to set the date fetched to local based on the tenants saved timezone: ```php
public function localize($dateField = null)
{
$dateValue = is_null($this->{$dateField}) ? Carbon::now() : $this->{$dateField};
return $this->inUsersTimezone($dateValue);
}
/**
* Change timezone of a carbon date.
*/
private function inUsersTimezone($dateValue): Carbon
{
return $this->asDateTime($dateValue)->timezone(session_timezone());
}