CUL_MAX: fix TimeInformation being in UTC (thanks to Ulf)
git-svn-id: https://svn.fhem.de/fhem/trunk@2595 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -341,7 +341,7 @@ CUL_MAX_Resend($)
|
||||
sub
|
||||
CUL_MAX_GetTimeInformationPayload()
|
||||
{
|
||||
my ($sec,$min,$hour,$day,$mon,$year,$wday,$yday,$isdst) = gmtime(time());
|
||||
my ($sec,$min,$hour,$day,$mon,$year,$wday,$yday,$isdst) = localtime(time());
|
||||
$mon += 1; #make month 1-based
|
||||
#month encoding is just guessed
|
||||
#perls localtime gives years since 1900, and we need years since 2000
|
||||
|
||||
Reference in New Issue
Block a user