Remove double adjustment for daylight savings
This commit is contained in:
parent
86089e4fb1
commit
1ad6a5f8f3
@ -26,10 +26,6 @@ time_t utc_to_local(time_t utc) {
|
|||||||
|
|
||||||
local = utc + date_time.tm_gmtoff;
|
local = utc + date_time.tm_gmtoff;
|
||||||
|
|
||||||
if (date_time.tm_isdst) {
|
|
||||||
local += 3600;
|
|
||||||
}
|
|
||||||
|
|
||||||
return local;
|
return local;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user