2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 16:56:54 +00:00

modified : added tzOffset via gdsOffset dummy (temporary bugfix)

git-svn-id: https://svn.fhem.de/fhem/trunk@5623 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen 2014-04-24 08:07:39 +00:00
parent 0665a677b2
commit 2ef7b1e401

View File

@ -587,10 +587,11 @@ sub decodeCAPData($$){
sub checkCAPValid($){
my ($expires) = @_;
my $valid = 0;
my $offset = ReadingsVal('gdsOffset','state',0);
$expires =~ s/T/ /;
$expires =~ s/\+/ \+/;
$expires = time_str2num($expires);
$valid = 1 if($expires gt time);
$valid = 1 if($expires gt (time-$offset));
return $valid;
}