add Time function to get unixtime from StartTime

This commit is contained in:
Isaac Connor 2016-04-01 13:00:59 -04:00
parent 6816a4c75b
commit cbebdfe670
1 changed files with 3 additions and 3 deletions

View File

@ -57,7 +57,7 @@ class Event {
$event_path =
$this->{'MonitorId'}
.'/'.strftime( "%y/%m/%d/%H/%M/%S",
$this->{'Time'}
$this->Time()
)
;
}
@ -75,7 +75,7 @@ class Event {
public function LinkPath() {
if ( ZM_USE_DEEP_STORAGE ) {
return $this->{'MonitorId'} .'/'.strftime( "%y/%m/%d/.", $this->{'Time'}).$this->{'Id'};
return $this->{'MonitorId'} .'/'.strftime( "%y/%m/%d/.", $this->Time()).$this->{'Id'};
}
Error("Calling Link_Path when not using deep storage");
return '';
@ -145,6 +145,6 @@ public function getStreamSrc( $args, $querySep='&' ) {
}
return( $streamSrc );
} // end function etStreamSrc
} // end function getStreamSrc
} # end class
?>