convert from strftime() to date() when forming the event path

pull/3494/head
Isaac Connor 2022-06-01 15:46:53 -04:00
parent d3b1ede73a
commit 907cdcd952
1 changed files with 3 additions and 3 deletions

View File

@ -112,9 +112,9 @@ class Event extends ZM_Object {
$event_path = '';
if ( $this->{'Scheme'} == 'Deep' ) {
$event_path = $this->{'MonitorId'}.'/'.strftime('%y/%m/%d/%H/%M/%S', $this->Time());
$event_path = $this->{'MonitorId'}.'/'.date('Y/m/d/H/i/s', $this->Time());
} else if ( $this->{'Scheme'} == 'Medium' ) {
$event_path = $this->{'MonitorId'}.'/'.strftime('%Y-%m-%d', $this->Time()).'/'.$this->{'Id'};
$event_path = $this->{'MonitorId'}.'/'.date('Y-m-d', $this->Time()).'/'.$this->{'Id'};
} else {
$event_path = $this->{'MonitorId'}.'/'.$this->{'Id'};
}
@ -124,7 +124,7 @@ class Event extends ZM_Object {
public function Link_Path() {
if ( $this->{'Scheme'} == 'Deep' ) {
return $this->{'MonitorId'}.'/'.strftime('%y/%m/%d/.', $this->Time()).$this->{'Id'};
return $this->{'MonitorId'}.'/'.date('y/m/d/.', $this->Time()).$this->{'Id'};
}
Error('Calling Link_Path when not using deep storage');
return '';