Commit 690dd90a authored by Myriam Delaruelle's avatar Myriam Delaruelle
Browse files

format timestamp daterendu

parent ebe5fb32
......@@ -190,11 +190,15 @@ class format_iena_renderer extends format_topics_renderer{
}
if (isset($param_section->daterendu) && $param_section->daterendu != 0) {
$section->dateUp = new DateTime("@$param_section->daterendu");
$section->date=date("j/m H:i", $param_section->daterendu);
$section->date_jour = date("j/m", $param_section->daterendu);
$section->date_heure = date("H:i", $param_section->daterendu);
/*$section->dateUp = new DateTime("@$param_section->daterendu");
$section->date = $section->dateUp->format("j/m H:i");
$section->date_jour = $section->dateUp->format("j/m");
$section->date_heure = $section->dateUp->format("H:i");
$section->dateUp = $section->dateUp->getTimestamp();
$section->dateUp = $section->dateUp->getTimestamp();*/
if($string_date_presence){
$section->string_date=$string_date_presence.$section->date_jour." à ".$section->date_heure;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment