mirror of
https://github.com/danpros/htmly.git
synced 2026-04-20 12:36:23 +05:30
Revert back the date_format
We will change the date format in one go later.
This commit is contained in:
parent
73e103b8ab
commit
0fc0d127da
8 changed files with 21 additions and 9 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue