Skip to content

Commit

Permalink
Fix: Datepicker field formatting when it is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
ModestasV committed Apr 14, 2016
1 parent 0189940 commit bd673d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Builders/ModelBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ public function set' . $camel . 'Attribute($input)
*/
public function get' . $camel . 'Attribute($input)
{
if($input != \'\') {
if($input != \'0000-00-00\') {
return Carbon::createFromFormat(\'Y-m-d\', $input)->format(config(\'quickadmin.date_format\'));
}else{
return \'\';
Expand Down

0 comments on commit bd673d2

Please sign in to comment.