laravel / nova-issues

554 stars 35 forks source link

DateTime widget shows current date, but not current time (shows 12:00:00 instead). #3362

Closed YasamDevelopment closed 3 years ago

YasamDevelopment commented 3 years ago

Description:

Detailed steps to reproduce the issue on a fresh Nova installation:

crynobone commented 3 years ago

From what I understand here this is the default behavior from Flatpickr.

davidhemphill commented 3 years ago

👋 Hi there! In order to keep this repository focused on bug reports, we auto-close feature requests and requests for help. Feel free to post your feature requests so others can discuss and add reactions. We'll keep an eye on them for later planning.

crynobone commented 3 years ago

You should be able to do the following:

use Laravel\Nova\Fields\DateTime;

DateTime::make('Purchased At')->default(now()->second(0))->incrementPickerMinuteBy(1),