'Fix' date/time format

This commit is contained in:
Aleksei Miheev
2014-01-12 15:12:17 +04:00
parent eb1b4b8fd4
commit b4406b9a40

View File

@@ -769,7 +769,7 @@ function timeformat($logTime, $show_today = true)
}
// Strip slashes off the time format string.
$str = $user_info['time_format'];
/* $str = $user_info['time_format'];
if (setlocale(LC_TIME, @$txt['lang_locale']))
{
@@ -790,6 +790,11 @@ function timeformat($logTime, $show_today = true)
// Format any other characters..
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...