libfreerdp-core: more debug output for tracking timezone bug
This commit is contained in:
parent
644b48dd15
commit
5aaaf58315
@ -133,7 +133,7 @@ void rdp_write_client_time_zone(STREAM* s, rdpSettings* settings)
|
||||
|
||||
/* UTC = LocalTime + Bias <-> Bias = UTC - LocalTime */
|
||||
|
||||
printf("std=%u\nday=%u\n",clientTimeZone->standardBias, clientTimeZone->daylightBias);
|
||||
printf("std=%u\nday=%u\nclBias=%u",clientTimeZone->standardBias, clientTimeZone->daylightBias, clientTimeZone->bias);
|
||||
|
||||
bias = 1440 - clientTimeZone->bias;
|
||||
printf("send bias %u\n", bias);
|
||||
@ -146,7 +146,7 @@ void rdp_write_client_time_zone(STREAM* s, rdpSettings* settings)
|
||||
rdp_write_system_time(s, &clientTimeZone->standardDate); /* StandardDate */
|
||||
|
||||
sbias = clientTimeZone->standardBias - clientTimeZone->bias;
|
||||
|
||||
printf("sbias = %d\n", sbias);
|
||||
if (sbias < 0)
|
||||
bias2c = (uint32) sbias;
|
||||
else
|
||||
|
@ -1647,6 +1647,7 @@ void freerdp_time_zone_detect(TIME_ZONE_INFO* clientTimeZone)
|
||||
local_time = localtime(&t);
|
||||
|
||||
#ifdef HAVE_TM_GMTOFF
|
||||
printf("tm_gmtoff = %ld\n", local_time->tm_gmtoff);
|
||||
if (local_time->tm_gmtoff >= 0)
|
||||
{
|
||||
sbias = local_time->tm_gmtoff / 60;
|
||||
|
Loading…
Reference in New Issue
Block a user