mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-01 01:09:47 +00:00
55_GDS.pm - improved timezone handling
git-svn-id: https://svn.fhem.de/fhem/trunk@5655 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
a00c30a6a2
commit
12ec4c593e
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user