mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-07-13 22:52:24 -04:00
Fix missed StartTime to StartDateTime
This commit is contained in:
@@ -89,11 +89,11 @@ class ImageComponent extends Component {
|
||||
|
||||
}
|
||||
|
||||
// Take the StartTime of an Event and return
|
||||
// Take the StartDateTime of an Event and return
|
||||
// the path to its location on the filesystem
|
||||
public function getEventPath( $event ) {
|
||||
if ( $config['ZM_USE_DEEP_STORAGE'] == 1 )
|
||||
return $event['Event']['MonitorId'].'/'.strftime( "%y/%m/%d/%H/%M/%S", strtotime($event['Event']['StartTime']) );
|
||||
return $event['Event']['MonitorId'].'/'.strftime( '%y/%m/%d/%H/%M/%S', strtotime($event['Event']['StartDateTime']) );
|
||||
else
|
||||
return $event['Event']['MonitorId'].'/'.$event['Event']['Id'];
|
||||
}
|
||||
|
||||
@@ -65,7 +65,7 @@ class EventsController extends AppController {
|
||||
// API
|
||||
|
||||
'limit' => '100',
|
||||
'order' => array('StartTime'),
|
||||
'order' => array('StartDateTime'),
|
||||
'paramType' => 'querystring',
|
||||
);
|
||||
if ( isset($conditions['GroupId']) ) {
|
||||
@@ -309,7 +309,7 @@ class EventsController extends AppController {
|
||||
} else {
|
||||
$conditions = array();
|
||||
}
|
||||
array_push($conditions, array("StartTime >= DATE_SUB(NOW(), INTERVAL $expr $unit)"));
|
||||
array_push($conditions, array("StartDateTime >= DATE_SUB(NOW(), INTERVAL $expr $unit)"));
|
||||
$query = $this->Event->find('all', array(
|
||||
'fields' => array(
|
||||
'MonitorId',
|
||||
|
||||
Reference in New Issue
Block a user