Bug 429 - Fixed video generation with deep storage.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2270 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2007-12-29 18:24:26 +00:00
parent bdeeb7f2e4
commit 79e3847c1b
1 changed files with 2 additions and 1 deletions

View File

@ -45,6 +45,7 @@ use constant DBG_LEVEL => 0; # 0 is errors, warnings and info only, > 0 for debu
use ZoneMinder;
use DBI;
use Data::Dumper;
use POSIX qw(strftime);
use Getopt::Long qw(:config no_ignore_case );
$| = 1;
@ -168,7 +169,7 @@ $sth->finish();
my $event_path;
if ( ZM_USE_DEEP_STORAGE )
{
$event_path = ZM_PATH_WEB.'/'.ZM_DIR_EVENTS.'/'.$event->{MonitorId}.'/'.strftime( "%y/%m/%d/%H/%M/%S", $event->{Time} );
$event_path = ZM_PATH_WEB.'/'.ZM_DIR_EVENTS.'/'.$event->{MonitorId}.'/'.strftime( "%y/%m/%d/%H/%M/%S", localtime($event->{Time}) );
}
else
{