Modify the central part of msg_to_pdu to the following
/* work out 1/4 hour difference between local time and UTC/GMT */
gmtime = gw_gmtime(time(NULL));
localtime = gw_localtime(time(NULL));
gwqdiff = ((localtime.tm_hour - gmtime.tm_hour) * 4)
+ ((localtime.tm_min - gmtime.tm_min) / 15);
if (gwqdiff >= 0)
relation_UTC_time = octstr_create("+");
else
relation_UTC_time = octstr_create("-");
Alex
On Wed, 22 May 2002, Alex Judd wrote:
> > * in computing relation_UTC_time, the logic assumes that all time zones
> > have differences of 1 hour to one another, which is not correct - there
> > are some timezones that have a difference of half an hour.
--
Alex Judd
http://www.skywire.co.uk