92_FileLog.pm: Fix warning caused by #59085 (Forum #59227)

git-svn-id: https://svn.fhem.de/fhem/trunk@12378 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2016-10-18 19:45:22 +00:00
parent 29c7261b2a
commit 776d6ccaed

View File

@@ -606,9 +606,9 @@ FileLog_Get($@)
$linf = $hash->{logfile}; $linf = $hash->{logfile};
my ($Y,$m,$d) = ($1,$2,$3); my ($Y,$m,$d) = ($1,$2,$3);
sub expandFileWildcards($$$$) { sub expandFileWildcards($$$$) {
my $f=shift; my ($f,$Y,$m,$d)=@_;
my ($Y,$m,$d)=@_; return ResolveDateWildcards($f,
return ResolveDateWildcards($f,localtime(time_str2num("$Y-$m-$d"))); localtime(time_str2num("$Y-$m-$d 00:00:00")));
}; };
$linf=expandFileWildcards($linf,$Y,$m,$d); $linf=expandFileWildcards($linf,$Y,$m,$d);
if(AttrVal($name, "createGluedFile", 0)) { if(AttrVal($name, "createGluedFile", 0)) {