Fix missed StartTime to StartDateTime

This commit is contained in:
Isaac Connor committed 2020-11-04 18:20:59 -05:00
1 parent 018abe39c2
commit d37bce4e0e
2 files changed
+4 -4

No files matched your search

@@ -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'];
}