mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04: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)
|
public function translateDate($date, $format, $locale)
|
||||||
{
|
{
|
||||||
|
if(empty($date))
|
||||||
|
return '';
|
||||||
|
|
||||||
Carbon::setLocale($locale);
|
Carbon::setLocale($locale);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user