2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 23:06:37 +00:00

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 d29d48cf6a
commit 0996896b1e

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;
}