mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +00:00
92_FileLog.pm: fix createGluedFile if span contains DST change (Forum #99215)
git-svn-id: https://svn.fhem.de/fhem/trunk@19102 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
a2d9f0961f
commit
6c38a5cdc2
@ -646,6 +646,9 @@ FileLog_Get($@)
|
||||
if(open(my $out,'>',$tempfileName)){
|
||||
my $sec = time_str2num("$fy-$fm-$fd 00:00:00");
|
||||
my $secTo = time_str2num("$ty-$tm-$td 00:00:00");
|
||||
if(($secTo-$sec)%86400) { #DST change inbetween, #99215
|
||||
$secTo = $sec + 86400*int(($secTo-$sec+3600)/86400);
|
||||
}
|
||||
my $lastFile = "";
|
||||
while($sec <= $secTo) { # Loop over each day
|
||||
$linf=ResolveDateWildcards($hash->{logfile},localtime($sec));
|
||||
|
Loading…
x
Reference in New Issue
Block a user