Use y instead of Y for path generation when using Deep scheme. Fixes #3583

pull/3609/head
Isaac Connor 2022-09-04 13:53:19 -04:00
parent 76d11f2b84
commit d52d02c619
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ class Event extends ZM_Object {
$event_path = ''; $event_path = '';
if ( $this->{'Scheme'} == 'Deep' ) { if ( $this->{'Scheme'} == 'Deep' ) {
$event_path = $this->{'MonitorId'}.'/'.date('Y/m/d/H/i/s', $this->Time()); $event_path = $this->{'MonitorId'}.'/'.date('y/m/d/H/i/s', $this->Time());
} else if ( $this->{'Scheme'} == 'Medium' ) { } else if ( $this->{'Scheme'} == 'Medium' ) {
$event_path = $this->{'MonitorId'}.'/'.date('Y-m-d', $this->Time()).'/'.$this->{'Id'}; $event_path = $this->{'MonitorId'}.'/'.date('Y-m-d', $this->Time()).'/'.$this->{'Id'};
} else { } else {