correct rus date event
This commit is contained in:
@@ -190,6 +190,44 @@ function isContainsRussianLetters($text = false) {
|
||||
return false;
|
||||
}
|
||||
|
||||
function eventdate_str($date){
|
||||
|
||||
|
||||
$month = array(
|
||||
|
||||
"01" => "января",
|
||||
"02" => "февраля",
|
||||
"03" => "марта",
|
||||
"04" => "апреля",
|
||||
"05" => "мая",
|
||||
"06" => "июня",
|
||||
"07" => "июля",
|
||||
"08" => "августа",
|
||||
"09" => "сентября",
|
||||
"10" => "октября",
|
||||
"11" => "ноября",
|
||||
"12" => "декабря"
|
||||
|
||||
);
|
||||
|
||||
|
||||
$findT = strpos($date, 'T');
|
||||
|
||||
if ($findT){
|
||||
$currdatetime = substr($date, 0, $findT);
|
||||
}
|
||||
else {
|
||||
$currdatetime = $date;
|
||||
}
|
||||
|
||||
$currdate = explode("-", $currdatetime);
|
||||
|
||||
|
||||
return $currdate[2].' '.$month[$currdate[1]].' '.$currdate[0];
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
function express_slug($value){
|
||||
|
||||
|
||||
Reference in New Issue
Block a user