|
|
|
@ -26,7 +26,7 @@ function date_id($date) |
|
|
|
$explodedDate = explode('-', $date); |
|
|
|
|
|
|
|
if (count($explodedDate) == 3 && checkdate($explodedDate[1], $explodedDate[2], $explodedDate[0])) { |
|
|
|
$months = getMonths(); |
|
|
|
$months = get_months(); |
|
|
|
|
|
|
|
return $explodedDate[2].' '.$months[$explodedDate[1]].' '.$explodedDate[0]; |
|
|
|
} |
|
|
|
@ -45,13 +45,13 @@ function monthId($monthNumber) |
|
|
|
return $monthNumber; |
|
|
|
} |
|
|
|
|
|
|
|
$months = getMonths(); |
|
|
|
$months = get_months(); |
|
|
|
$monthNumber = monthNumber($monthNumber); |
|
|
|
|
|
|
|
return $months[$monthNumber]; |
|
|
|
} |
|
|
|
|
|
|
|
function getMonths() |
|
|
|
function get_months() |
|
|
|
{ |
|
|
|
return [ |
|
|
|
'01' => __('time.months.01'), |
|
|
|
|