Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix time zone clock shift

  • Loading branch information...
commit 556ee864b5db1407bc026571280d1f83fc15cd08 1 parent 3915878
Matthew Mosesohn authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 libfreerdp-locale/timezone.c
4 libfreerdp-locale/timezone.c
View
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.