Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
chamilo-lms/plugin/date/index.act.php

15 lines
431 B

<?php
$convert_lang_to_code = array(
"english" => "en_US",
"french" => "fr_BE",
"dutch" => "nl_NL",
"german" => "de_DE",
"japanese" => "ja_JP",
"danish" => "da_DK",
);
if(!empty($_SESSION['user_language_choice']) && !empty($convert_lang_to_code[$_SESSION['user_language_choice']])){
$code = $convert_lang_to_code[$_SESSION['user_language_choice']];
$locale = setlocale(LC_TIME,$code);
}
$date = strftime('%c');
?>