Re: [evolution-patches] Patch for fixing free/busy hang issues in the eds Groupwise backend
- From: Rodrigo Moya <rodrigo ximian com>
- To: kharish novell com
- Cc: patches <evolution-patches lists ximian com>
- Subject: Re: [evolution-patches] Patch for fixing free/busy hang issues in the eds Groupwise backend
- Date: Mon, 29 Mar 2004 15:54:56 +0200
On Mon, 2004-03-29 at 20:06 +0530, Harish Krishnaswamy wrote:
> hi,
>
> the attached patch contains modifications in the FreeBusy requests sent
> to the server. This complements the server side fixes and solves hang
> issues in the event editor dialog.
> @@ -396,14 +397,16 @@ start_freebusy_session (EGwConnection *c
> /*FIXME the following code converts time_t to String
> representation
> * through icaltime. Find if a direct conversion exists. */
> /* Timezone in server is assumed to be UTC */
> - icaltime = icaltime_from_timet(start, FALSE );
> - start_date = icaltime_as_ical_string (icaltime);
> -
> - icaltime = icaltime_from_timet(end, FALSE);
> - end_date = icaltime_as_ical_string (icaltime);
> +
> + utc = icaltimezone_get_utc_timezone ();
> + icaltime = icaltime_from_timet_with_zone (start, FALSE, utc);
> + start_date = icaltime_as_ical_string (icaltime);
> +
> + icaltime = icaltime_from_timet_with_zone (end, FALSE, utc);
> + end_date = icaltime_as_ical_string (icaltime);
>
if using UTC, I guess you'll have to convert the start and end times
from the local timezone to UTC.
Anyway, commit if this works, and fix the above problem, please.
cheers
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]