'Fix' date/time format
This commit is contained in:
@@ -769,7 +769,7 @@ function timeformat($logTime, $show_today = true)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Strip slashes off the time format string.
|
// Strip slashes off the time format string.
|
||||||
$str = $user_info['time_format'];
|
/* $str = $user_info['time_format'];
|
||||||
|
|
||||||
if (setlocale(LC_TIME, @$txt['lang_locale']))
|
if (setlocale(LC_TIME, @$txt['lang_locale']))
|
||||||
{
|
{
|
||||||
@@ -790,6 +790,11 @@ function timeformat($logTime, $show_today = true)
|
|||||||
|
|
||||||
// Format any other characters..
|
// Format any other characters..
|
||||||
return strftime($str, $time);
|
return strftime($str, $time);
|
||||||
|
*/
|
||||||
|
$fmt = datefmt_create("ru_RU", NULL, NULL, 'Europe/Moscow', NULL, "d MMMM Y HH:mm");
|
||||||
|
return datefmt_format($fmt, $time);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Removes special entities from strings. Compatibility...
|
// Removes special entities from strings. Compatibility...
|
||||||
|
|||||||
Reference in New Issue
Block a user