Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 2008 → Rev 2009

/trunk/jrest/services/ImageRDF.php
82,7 → 82,14
$xml .= ' dcterms:spatial="'.utf8_decode($picture['zone_geo'])." (".$picture['ce_zone_geo'].")".'"'."\n";
if ($picture['date_observation'] != '0000-00-00 00:00:00') {
list($year,$month,$day) = explode('-',$picture['date_observation']);
$yearMonthDay = explode('-',$picture['date_observation']);
$year = $yearMonthDay[0];
if (count($yearMonthDay) > 1) {
$month = $yearMonthDay[1];
}
if (count($yearMonthDay) > 2) {
$day = $yearMonthDay[2];
}
list($day) = explode(' ',$day);
$created = $day.'/'.$month.'/'.$year;
$xml .= ' dcterms:created="'.$created.'"'."\n";