1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 16:31:33 +02:00

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)
{
if(empty($date))
return '';
Carbon::setLocale($locale);
try {