mirror of
https://github.com/thelsing/knx.git
synced 2025-01-30 00:19:01 +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:
|
case StringType:
|
||||||
{
|
{
|
||||||
time_t timeVal = ulongValue();
|
time_t timeVal = ulongValue();
|
||||||
struct tm* timePtr = gmtime(&timeVal);
|
struct tm timeStruct;
|
||||||
return *timePtr;
|
gmtime_r(&timeVal, &timeStruct);
|
||||||
|
return timeStruct;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
struct tm tmp = {0};
|
struct tm tmp = {0};
|
||||||
|
Loading…
Reference in New Issue
Block a user