mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
98_logProxy.pm: fixed multi digit month offset (see https://forum.fhem.de/index.php/topic,26529.msg847995.html#msg847995)
git-svn-id: https://svn.fhem.de/fhem/trunk@17587 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
a5a78db35c
commit
ad7875c2cd
@ -463,7 +463,7 @@ logProxy_shiftTime($$)
|
||||
|
||||
$time =~ s/ /_/;
|
||||
|
||||
if( $offset =~ m/((-)?\d)*m/ ) {
|
||||
if( $offset =~ m/((-)?\d+)m/ ) {
|
||||
my @t = split("[-_:]", $time);
|
||||
$time = mktime($t[5],$t[4],$t[3],$t[2],$t[1]-1+$1,$t[0]-1900,0,0,-1);;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user