Revert back the date_format

We will change the date format in one go later.
This commit is contained in:
danpros 2020-05-04 10:16:56 +07:00
commit 0fc0d127da
8 changed files with 21 additions and 9 deletions

View file

@ -3215,7 +3215,7 @@ function get_language()
setlocale(LC_ALL, 'en_US'); // Change time format to English
} else {
if (file_exists($langFile)) {
i18n('source', 'lang/' . $langID . '.ini');
i18n('source', $langFile);
setlocale(LC_ALL, $local);
} else {
i18n('source', 'lang/en.ini'); // Load the English language file
@ -3224,3 +3224,16 @@ function get_language()
}
}
function format_date($date)
{
$date_format = config('date.format');
if (!isset($date_format) || empty($date_format)) {
return date('d F Y', $date);
} else {
return date($date_format, $date);
}
}