Subversion Repositories eFlore/Applications.del

Rev

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

Rev 1309 Rev 1318
Line 125... Line 125...
125
		$item['modifier_par'] = $this->creerAuteur($info);
125
		$item['modifier_par'] = $this->creerAuteur($info);
126
		return $item;
126
		return $item;
127
	}
127
	}
Line 128... Line 128...
128
 
128
 
129
	protected function convertirDateHeureMysqlEnTimestamp($date_heure_mysql){
129
	protected function convertirDateHeureMysqlEnTimestamp($date_heure_mysql){
-
 
130
		$timestamp = 0;
-
 
131
		// Le date de 1970-01-01 pose problème dans certains lecteur de Flux, on met donc la date de création de Tela
130
		$timestamp = 1;
132
		$date_heure_mysql = ($date_heure_mysql == '0000-00-00 00:00:00') ? '1999-12-14 00:00:00' : $date_heure_mysql;
131
		if ($date_heure_mysql != '0000-00-00 00:00:00') {
133
		if ($date_heure_mysql != '0000-00-00 00:00:00') {
132
			$val = explode(' ', $date_heure_mysql);
134
			$val = explode(' ', $date_heure_mysql);
133
			$date = explode('-', $val[0]);
135
			$date = explode('-', $val[0]);
134
			$heure = explode(':', $val[1]);
136
			$heure = explode(':', $val[1]);