Merge branch 'devel' of dev.sourcefabric.org:airtime into devel
This commit is contained in:
commit
f0336633ce
|
@ -1141,6 +1141,14 @@ EOT;
|
||||||
// if the column is timestamp, convert it into UTC
|
// if the column is timestamp, convert it into UTC
|
||||||
if ($column->getType() == PropelColumnTypes::TIMESTAMP) {
|
if ($column->getType() == PropelColumnTypes::TIMESTAMP) {
|
||||||
$spCriteriaValue = Application_Common_DateHelper::ConvertToUtcDateTimeString($criteria['value']);
|
$spCriteriaValue = Application_Common_DateHelper::ConvertToUtcDateTimeString($criteria['value']);
|
||||||
|
/* Check if only a date was supplied and trim
|
||||||
|
* the time after it is converted to UTC time
|
||||||
|
*/
|
||||||
|
if (strlen($criteria['value']) <= 10) {
|
||||||
|
//extract date only from timestamp in db
|
||||||
|
$spCriteria = 'date('.$spCriteria.')';
|
||||||
|
$spCriteriaValue = substr($spCriteriaValue, 0, 10);
|
||||||
|
}
|
||||||
} else if($spCriteria == "bit_rate") {
|
} else if($spCriteria == "bit_rate") {
|
||||||
// multiply 1000 because we store only number value
|
// multiply 1000 because we store only number value
|
||||||
// e.g 192kps is stored as 192000
|
// e.g 192kps is stored as 192000
|
||||||
|
|
Loading…
Reference in New Issue