From 79e3847c1bf3a1fe49d166565cb29b60507aee0f Mon Sep 17 00:00:00 2001 From: stan Date: Sat, 29 Dec 2007 18:24:26 +0000 Subject: [PATCH] Bug 429 - Fixed video generation with deep storage. git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2270 e3e1d417-86f3-4887-817a-d78f3d33393f --- scripts/zmvideo.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/zmvideo.pl b/scripts/zmvideo.pl index 865409b41..7cc4c8cf7 100644 --- a/scripts/zmvideo.pl +++ b/scripts/zmvideo.pl @@ -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 {