From 907cdcd9528f0ea95bb7025197f739bb57381d20 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Wed, 1 Jun 2022 15:46:53 -0400 Subject: [PATCH] convert from strftime() to date() when forming the event path --- web/includes/Event.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/includes/Event.php b/web/includes/Event.php index a43625cd8..02a95ece3 100644 --- a/web/includes/Event.php +++ b/web/includes/Event.php @@ -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 '';