Skip to content

Commit

Permalink
[5.5] Fix Data Missing for empty string date values (#22108)
Browse files Browse the repository at this point in the history
* #22107

* check if is empty

* typo
  • Loading branch information
VinceG authored and taylorotwell committed Nov 17, 2017
1 parent 8dd0ba6 commit 9285f28
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ protected function isStandardDateFormat($value)
*/
public function fromDateTime($value)
{
return is_null($value) ? $value : $this->asDateTime($value)->format(
return empty($value) ? $value : $this->asDateTime($value)->format(
$this->getDateFormat()
);
}
Expand Down

0 comments on commit 9285f28

Please sign in to comment.