getCfg('locale'))) { foreach (array ( '%a', '%A', '%b', '%B' )as $token) if (strpos($str, $token) !== false) $str = str_replace($token, ucwords((strftime($token, $time))), $str); } else */ { // Do-it-yourself time localization. Fun. 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, $GLOBALS['KUNENA_DT_txt'][$text_label][(int)strftime($token === '%a' || $token === '%A' ? '%w' : '%m', $time)], $str); if (strpos($str, '%p')) $str = str_replace('%p', (strftime('%H', $time) < 12 ? 'am' : 'pm'), $str); } // Format any other characters.. return strftime($str, $time); } ?>