Fix time zone clock shift
This commit is contained in:
parent
39158785a6
commit
556ee864b5
@ -1605,9 +1605,9 @@ void freerdp_time_zone_detect(TIME_ZONE_INFO* clientTimeZone)
|
||||
|
||||
#ifdef HAVE_TM_GMTOFF
|
||||
if (local_time->tm_gmtoff >= 0)
|
||||
clientTimeZone->bias = (uint32) (local_time->tm_gmtoff / 60);
|
||||
clientTimeZone->bias = (uint32) (-1 * local_time->tm_gmtoff / 60);
|
||||
else
|
||||
clientTimeZone->bias = (uint32) ((-1 * local_time->tm_gmtoff) / 60 + 720);
|
||||
clientTimeZone->bias = (uint32) ((-1 * local_time->tm_gmtoff) / 60);
|
||||
#elif sun
|
||||
if (local_time->tm_isdst > 0)
|
||||
clientTimeZone->bias = (uint32) (altzone / 3600);
|
||||
|
Loading…
Reference in New Issue
Block a user