55_GDS.pm - improved timezone handling
git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@5655 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -153,6 +153,8 @@ sub GDS_Set($@) {
|
||||
my $usage = "Unknown argument, choose one of clear:noArg help:noArg rereadcfg:noArg update:noArg ".
|
||||
"conditions:".$sList." ";
|
||||
|
||||
readingsSingleUpdate($hash, '_tzOffset', _calctz(time,localtime(time))*3600, 0);
|
||||
|
||||
my $command = lc($a[1]);
|
||||
my $parameter = $a[2] if(defined($a[2]));
|
||||
|
||||
@@ -222,6 +224,8 @@ sub GDS_Get($@) {
|
||||
"warningsmap:"."Deutschland,Bodensee,".$bulaList." ".
|
||||
"warnings:".$bulaList;
|
||||
|
||||
readingsSingleUpdate($hash, '_tzOffset', _calctz(time,localtime(time))*3600, 0);
|
||||
|
||||
my ($result, $datensatz, $found);
|
||||
|
||||
given($command) {
|
||||
|
||||
Reference in New Issue
Block a user