From: Roach, M. R. <mr...@ci...> - 2004-02-03 22:19:48
|
It appears that the current time zone redirection support doesn't work for time zones west of UTC. I got it to work by changing line 257 of rdp.c to tzone = (mktime(gmtime(&t)) - mktime(localtime(&t))) / 60; I think that should work for all time zones west of UTC, but probably not for those East of UTC. I have an idea of how to make it work for all time zones, but am not much of a low-level programmer. What I figured out is that they use a strange (to me) byte order for the time zone: For example Eastern time (+5) is 0x0000 012c and is sent by doing out_uint16_le(s, 0x012c); out_uint16_le(s, 0x0000); To do negative numbers, such as Greenland (-3) = 0xffff ff4c you would send out_uint16_le(s, 0xff4c); out_uint16_le(s, 0xffff); What I don't know is how to massage tzone into that format. Does anyone know how to handle this? Thanks, Mark Roach |