TextInput datetime with milliseconds

I may be missing something. I have the following TextInput:
TextInput::make('finish_time')
->type('datetime-local')
->step('.001'),
TextInput::make('finish_time')
->type('datetime-local')
->step('.001'),
Model:
protected $casts
= [
'start_time' => 'datetime:Y-m-d H:i:s.v',
];
protected $casts
= [
'start_time' => 'datetime:Y-m-d H:i:s.v',
];
For example, if I want to change only the milliseconds, it is not updated in the database, but if I also change, for example, the seconds, the milliseconds update correctly
1 Reply
H.Bilbao
H.BilbaoOP11mo ago
mutateFormDataBeforeSave $data Log:
[2023-09-03 20:58:29] local.INFO: array (
'edition_id' => 1,
'stage_id' => 1,
'participant_id' => 1,
'start_time' => '2023-09-29T21:31:26.5',
'finish_time' => '2023-09-30T15:15:13.6',
'inverted_time' => '2023-09-02 00:42:57',
'is_validated' => true,
'is_neutralized' => true,
)
[2023-09-03 20:58:29] local.INFO: array (
'edition_id' => 1,
'stage_id' => 1,
'participant_id' => 1,
'start_time' => '2023-09-29T21:31:26.5',
'finish_time' => '2023-09-30T15:15:13.6',
'inverted_time' => '2023-09-02 00:42:57',
'is_validated' => true,
'is_neutralized' => true,
)
SQL Log:
Execute update `edition_times` set `is_validated` = 1, `is_neutralized` = 1, `edition_times`.`updated_at` = '2023-09-03 20:58:29' where `id` = 1
Execute update `edition_times` set `is_validated` = 1, `is_neutralized` = 1, `edition_times`.`updated_at` = '2023-09-03 20:58:29' where `id` = 1
There is no update of the fields that I have only modified in milliseconds hello, any solution for this? I'm still having the same problem.
Want results from more Discord servers?
Add your server