Skip to content

Commit bd673d2

Browse files
committed
Fix: Datepicker field formatting when it is empty
1 parent 0189940 commit bd673d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Builders/ModelBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ public function set' . $camel . 'Attribute($input)
259259
*/
260260
public function get' . $camel . 'Attribute($input)
261261
{
262-
if($input != \'\') {
262+
if($input != \'0000-00-00\') {
263263
return Carbon::createFromFormat(\'Y-m-d\', $input)->format(config(\'quickadmin.date_format\'));
264264
}else{
265265
return \'\';

0 commit comments

Comments
 (0)