2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-07 19:04:20 +00:00

93_Log2Syslog: contrib 5.10.0

git-svn-id: https://svn.fhem.de/fhem/trunk@21604 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
nasseeder1 2020-04-05 14:28:28 +00:00
parent 454c0e6631
commit 9a42cd921a

View File

@ -43,7 +43,7 @@ eval "use FHEM::Meta;1" or my $mod
# Versions History intern:
our %Log2Syslog_vNotesIntern = (
"5.10.0" => "04.04.2020 new attribute 'timeSpec', send and parse messages according to UTC or Local time, minor fixes ",
"5.10.0" => "04.04.2020 new attribute 'timeSpec', send and parse messages according to UTC or Local time, some minor fixes ",
"5.9.0" => "01.04.2020 Parser UniFi Controller Syslog (BSD Format) and Netconsole messages, more code review (e.g. remove prototypes) ",
"5.8.3" => "31.03.2020 fix warning uninitialized value \$pp in pattern match (m//) at line 465, Forum: topic,75426.msg1036553.html#msg1036553, some code review ",
"5.8.2" => "28.07.2019 fix warning uninitialized value in numeric ge (>=) at line 662 ",
@ -1146,9 +1146,9 @@ sub Log2Syslog_getTimeFromOffset {
my $tz = AttrVal($name, "timeSpec", "Local");
my ($year,$month,$mday) = $date =~ /(\d{4})-(\d{2})-(\d{2})/;
return $dt if(!$year || !$month ||!$mday);
return $dt if(!$year || !$month || !$mday);
my ($hour,$min,$sec) = $time =~ /(\d{2}):(\d{2}):(\d{2})/;
return $dt if(!$hour || !$min ||!$sec);
return $dt if(!$hour || !$min || !$sec);
$year -= 1900;
$month--;