Eloquent and Dates

What seems to be the problem: I am binding an eloquent model to a public property. The model contains 2 date fields. Eloquent returns the fields in one format, and then the conversion to Javascript seems to change them to another. This means the 2 date fields in the form on the page always flag as dirty on change of ANY field.

Steps to Reproduce: see code below.

Are you using the latest version of Livewire: Yes on Laravel 7.x.

Do you have any screenshots or code examples:


public $event;

$this->event = Event::find($eventid);

Eloquent returns the date in the format 2020-09-29 00:00:00. But Livewire is overwriting the inputs in the format 2020-09-29T00:00:00.000000Z.

Does anyone have any advice on how to deal with eloquent model binding and dates in Livewire?