Permalink
Browse files

Fix time zone clock shift

  • Loading branch information...
1 parent 3915878 commit 556ee864b5db1407bc026571280d1f83fc15cd08 Matthew Mosesohn committed May 15, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 libfreerdp-locale/timezone.c
@@ -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);

0 comments on commit 556ee86

Please sign in to comment.