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:
parent
77b85f123a
commit
848cb6ae4c
@ -99,6 +99,9 @@ trait MakesDates
|
||||
|
||||
public function translateDate($date, $format, $locale)
|
||||
{
|
||||
if(empty($date))
|
||||
return '';
|
||||
|
||||
Carbon::setLocale($locale);
|
||||
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user