Fix taken On / Posted On Media Dates
This commit is contained in:
@@ -208,7 +208,7 @@ class Spot extends Main
|
||||
}
|
||||
|
||||
/**
|
||||
* Get valid medias based on $sTimeRefField (both are on site time):
|
||||
* Get valid medias based on $sTimeRefField:
|
||||
* - taken_on: Date/time on which the media was taken
|
||||
* - posted_on: Date/time on which the media was uploaded
|
||||
* @param String $sTimeRefField Field to calculate relative times
|
||||
@@ -222,6 +222,7 @@ class Spot extends Main
|
||||
$sTimeRef = $asMedia[$sTimeRefField];
|
||||
if($sTimeRef >= $this->oProject->getActivePeriod('from') && $sTimeRef <= $this->oProject->getActivePeriod('to')) {
|
||||
$asMedia['taken_on_formatted'] = $this->getTimeFormat(strtotime($asMedia['taken_on']));
|
||||
$asMedia['posted_on_formatted'] = $this->getTimeFormat(strtotime($asMedia['posted_on']));
|
||||
$asMedia['displayed_id'] = $iIndex + 1;
|
||||
|
||||
$this->addTimeStamp($asMedia, strtotime($sTimeRef));
|
||||
|
||||
Reference in New Issue
Block a user