Do not translate date if none is present
This commit is contained in:
parent
77b85f123a
commit
848cb6ae4c
1 changed files with 3 additions and 0 deletions
|
|
@ -99,6 +99,9 @@ trait MakesDates
|
|||
|
||||
public function translateDate($date, $format, $locale)
|
||||
{
|
||||
if(empty($date))
|
||||
return '';
|
||||
|
||||
Carbon::setLocale($locale);
|
||||
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue