mirror of
https://github.com/thelsing/knx.git
synced 2025-01-21 00:05:43 +01:00
replace gmtime with gmtime_r
This commit is contained in:
parent
edb9b6b526
commit
87a495bf7a
@ -522,8 +522,9 @@ struct tm KNXValue::timeValue() const
|
||||
case StringType:
|
||||
{
|
||||
time_t timeVal = ulongValue();
|
||||
struct tm* timePtr = gmtime(&timeVal);
|
||||
return *timePtr;
|
||||
struct tm timeStruct;
|
||||
gmtime_r(&timeVal, &timeStruct);
|
||||
return timeStruct;
|
||||
}
|
||||
}
|
||||
struct tm tmp = {0};
|
||||
|
Loading…
Reference in New Issue
Block a user