Commit a390d087 authored by Raph El's avatar Raph El
Browse files

Test event récurent

parent d7e579fb
......@@ -7546,14 +7546,14 @@ if( Role::isSuperAdmin(Role::getRolesUserId(Yii::app()->session["userId"]) )){
$count["fuseau"][$value["address"]["addressCountry"]] = geoip_time_zone_by_country_and_region($value["address"]["addressCountry"]) ;
if(!empty($timezone[$value["address"]["addressCountry"]])){
$mars = new DateTimeZone($timezone[$value["address"]["addressCountry"]]);
$cc = date(DateTime::ISO8601, $value["startDate"]->sec ) ;
$events[$key]["startDateNew"] = new DateTime($cc) ;
$events[$key]["startDateNew"]->setTimezone($mars);
$events[$key]["startDateNew2"] = $events[$key]["startDateNew"]->format(DateTime::ISO8601);
// $mars = new DateTimeZone($timezone[$value["address"]["addressCountry"]]);
// $cc = date(DateTime::ISO8601, $value["startDate"]->sec ) ;
// $events[$key]["startDateNew"] = new DateTime($cc) ;
// $events[$key]["startDateNew"]->setTimezone($mars);
// $events[$key]["startDateNew2"] = $events[$key]["startDateNew"]->format(DateTime::ISO8601);
$events[$key]["timeZone"] = $timezone[$value["address"]["addressCountry"]] ;
$ts = $events[$key]["startDateNew"]->getTimestamp();
$events[$key]["startDateNew"] = new MongoDate($ts);
// $ts = $events[$key]["startDateNew"]->getTimestamp();
// $events[$key]["startDateNew"] = new MongoDate($ts);
//$events[$key]["created_atFormat"] = $events[$key]["created_at"]->format(DateTime::ISO8601);
}
......
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