Do not translate date if none is present

This commit is contained in:
David Bomba 2022-01-12 17:55:12 +11:00
parent 77b85f123a
commit 848cb6ae4c

View File

@ -99,6 +99,9 @@ trait MakesDates
public function translateDate($date, $format, $locale) public function translateDate($date, $format, $locale)
{ {
if(empty($date))
return '';
Carbon::setLocale($locale); Carbon::setLocale($locale);
try { try {