From 0c96a9e79433d1430118a68fd96ff9c6b427f916 Mon Sep 17 00:00:00 2001 From: Aleksei Miheev Date: Sun, 12 Jan 2014 15:12:17 +0400 Subject: [PATCH] 'Fix' date/time format --- forum/Sources/Subs.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/forum/Sources/Subs.php b/forum/Sources/Subs.php index 44a2a49..dd573f9 100644 --- a/forum/Sources/Subs.php +++ b/forum/Sources/Subs.php @@ -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...