Update helpers.php

Add company date-format
This commit is contained in:
Steven Brauer 2021-01-31 17:31:44 +01:00 committed by GitHub
parent 92bf17ace1
commit df4bbfa056
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,6 +23,22 @@ if (!function_exists('user')) {
}
}
if (!function_exists('company_date_format')) {
/**
* Format the given date based on company settings.
*
* @return string
*/
function company_date_format()
{
$date_time = new class() {
use DateTime;
};
return $date_time->getCompanyDateFormat();
}
}
if (!function_exists('company_date')) {
/**
* Format the given date based on company settings.