malzariey/filament-daterangepicker-filter

DateRangePicker format is not adjust accordingly automatically when timepicker is enabled

Opened this issue · 3 comments

When enabling timepicker, the $data did not included the time values nor the time was displayed on frontend unless we manually call displayFormat() and set the format accordingly.

Ideally, when one used timepicker() function on the DateRangePicker, it should automatically format it according (unless they have manully called displayFormat()).

Fixed in PR #82

now you can simply call timepicker() and the relavant function to automatically adjust the format without calling displayFormat

@majidalzariey any thoughts ?

@Aamish26622 Thank you for your great PR, but I would prefer to resolve if any issue is available in the format with the getFormat() and getDisplayFormat rather than implementing alot of new variables.

Might as well introduce a new API to enforce the format as it is.