Subversion Repositories Sites.obs-saisons.fr

Rev

Rev 262 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 262 Rev 284
Line 279... Line 279...
279
	}
279
	}
Line 280... Line 280...
280
	
280
	
281
	protected function convertirDateHeureMysqlEnTimestamp($date_heure_mysql){
281
	protected function convertirDateHeureMysqlEnTimestamp($date_heure_mysql){
282
       $val = explode(' ', $date_heure_mysql);
282
       $val = explode(' ', $date_heure_mysql);
-
 
283
       $date = explode('-', $val[0]);
283
       $date = explode('-', $val[0]);
284
       $val[1] = isset($val[1]) ? $val[1] : '00:00:00';
284
       $heure = explode(':', $val[1]);
285
       $heure = explode(':', $val[1]);
285
       return mktime((int)$heure[0], $heure[1], $heure[2], $date[1], $date[2], $date[0]);
286
       return mktime((int)$heure[0], $heure[1], $heure[2], $date[1], $date[2], $date[0]);
Line 286... Line 287...
286
	}
287
	}