55_GDS.pm - improved timezone offset handling

git-svn-id: https://svn.fhem.de/fhem/trunk@5648 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen
2014-04-25 21:49:07 +00:00
parent 6081eccca9
commit 1f543b769a

View File

@@ -126,7 +126,8 @@ sub GDS_Define($$$) {
} else {
Log3($name, 3, "GDS $name: No datafile (alerts) found");
}
readingsSingleUpdate($hash, "state", "active",1);
readingsSingleUpdate($hash, '_tzOffset', _calctz(time,localtime(time))*3600, 0);
readingsSingleUpdate($hash, 'state', 'active',1);
return undef;
}