Skip to content
Snippets Groups Projects
Commit 690dd90a authored by Myriam Delaruelle's avatar Myriam Delaruelle
Browse files

format timestamp daterendu

parent ebe5fb32
No related branches found
No related tags found
No related merge requests found
...@@ -190,11 +190,15 @@ class format_iena_renderer extends format_topics_renderer{ ...@@ -190,11 +190,15 @@ class format_iena_renderer extends format_topics_renderer{
} }
if (isset($param_section->daterendu) && $param_section->daterendu != 0) { 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 = $section->dateUp->format("j/m H:i");
$section->date_jour = $section->dateUp->format("j/m"); $section->date_jour = $section->dateUp->format("j/m");
$section->date_heure = $section->dateUp->format("H:i"); $section->date_heure = $section->dateUp->format("H:i");
$section->dateUp = $section->dateUp->getTimestamp(); $section->dateUp = $section->dateUp->getTimestamp();*/
if($string_date_presence){ if($string_date_presence){
$section->string_date=$string_date_presence.$section->date_jour." à ".$section->date_heure; $section->string_date=$string_date_presence.$section->date_jour." à ".$section->date_heure;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment