You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Laravel-admin: #.#.#
we saved date it check the edit page that is not match.
Description:
$grid->column('calling_reminder', __('Calling Reminder'))->display(function ($date) {
return date('d-m-Y', strtotime($date));
}); this is the code for grid.. this code get the date value is correct.
$form->date('calling_reminder', __('Calling Reminder'))->format('DD-MM-YYYY');
model
public function setCallingReminderAttribute($value)
{
// Parse the input date and format it as 'Ymd'
$this->attributes['calling_reminder'] = \Carbon\Carbon::createFromFormat('d-m-Y', $value)->format('Y-m-d');
}
we click the edit page then show the date is not correct.
Steps To Reproduce:
The text was updated successfully, but these errors were encountered:
we saved date it check the edit page that is not match.
Description:
$grid->column('calling_reminder', __('Calling Reminder'))->display(function ($date) {
return date('d-m-Y', strtotime($date));
}); this is the code for grid.. this code get the date value is correct.
$form->date('calling_reminder', __('Calling Reminder'))->format('DD-MM-YYYY');
Steps To Reproduce:
The text was updated successfully, but these errors were encountered: