'Fix' date/time format

This commit is contained in:
Aleksei Miheev
2014-01-12 15:12:17 +04:00
parent 181c5cce82
commit 0c96a9e794

View File

@@ -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...