change company_date helper

This commit is contained in:
Cüneyt Şentürk 2021-02-23 22:11:35 +03:00
parent dc6cba5f5e
commit 9065ee764f

View File

@ -47,11 +47,7 @@ if (!function_exists('company_date')) {
*/ */
function company_date($date) function company_date($date)
{ {
$date_time = new class() { return Date::parse($date)->format(company_date_format());
use DateTime;
};
return Date::parse($date)->format($date_time->getCompanyDateFormat());
} }
} }