add Time function to get unixtime from StartTime
This commit is contained in:
parent
6816a4c75b
commit
cbebdfe670
|
@ -57,7 +57,7 @@ class Event {
|
||||||
$event_path =
|
$event_path =
|
||||||
$this->{'MonitorId'}
|
$this->{'MonitorId'}
|
||||||
.'/'.strftime( "%y/%m/%d/%H/%M/%S",
|
.'/'.strftime( "%y/%m/%d/%H/%M/%S",
|
||||||
$this->{'Time'}
|
$this->Time()
|
||||||
)
|
)
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
@ -75,7 +75,7 @@ class Event {
|
||||||
|
|
||||||
public function LinkPath() {
|
public function LinkPath() {
|
||||||
if ( ZM_USE_DEEP_STORAGE ) {
|
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");
|
Error("Calling Link_Path when not using deep storage");
|
||||||
return '';
|
return '';
|
||||||
|
@ -145,6 +145,6 @@ public function getStreamSrc( $args, $querySep='&' ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
return( $streamSrc );
|
return( $streamSrc );
|
||||||
} // end function etStreamSrc
|
} // end function getStreamSrc
|
||||||
} # end class
|
} # end class
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue