Косяк с датой
После перехода на smf 2.0 произошел косяк с датой, а именно ее не понятная читаемость…
В файле Sources/Subs.php ищем:
if (setlocale(LC_TIME, $txt['lang_locale']))
{
foreach (array(‘%a’, ‘%A’, ‘%b’, ‘%B’) as $token)
if (strpos($str, $token) !== false)
$str = str_replace($token, $smcFunc['ucwords'](strftime($token, $time)), $str);
}
else
заменяем на:
if (setlocale(LC_TIME, $txt['lang_locale']))
{
foreach (array(‘%a’ => ‘days_short’, ‘%A’ => ‘days’, ‘%b’ => ‘months_short’, ‘%B’ => ‘months’) as $token => $text_label)
if (strpos($str, $token) !== false)
$str = str_replace($token, $txt[$text_label][(int) strftime($token === '%b' || $token === '%B' ? '%m' : '%m', $time)], $str);
}
else
И дата отображается нормально!