diff options
author | JP Rosevear <jpr@ximian.com> | 2001-10-30 03:35:37 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2001-10-30 03:35:37 +0800 |
commit | df5427ac094df5011fe6decec383c3e71a8c68a3 (patch) | |
tree | 8bbfad30a9e3ee693646a51aff4d99c94354e097 /calendar/conduits | |
parent | 07a33f25f2af378c171e9cc2a8388fc21572e814 (diff) | |
download | gsoc2013-evolution-df5427ac094df5011fe6decec383c3e71a8c68a3.tar gsoc2013-evolution-df5427ac094df5011fe6decec383c3e71a8c68a3.tar.gz gsoc2013-evolution-df5427ac094df5011fe6decec383c3e71a8c68a3.tar.bz2 gsoc2013-evolution-df5427ac094df5011fe6decec383c3e71a8c68a3.tar.lz gsoc2013-evolution-df5427ac094df5011fe6decec383c3e71a8c68a3.tar.xz gsoc2013-evolution-df5427ac094df5011fe6decec383c3e71a8c68a3.tar.zst gsoc2013-evolution-df5427ac094df5011fe6decec383c3e71a8c68a3.zip |
handle date values
2001-10-29 JP Rosevear <jpr@ximian.com>
* conduits/calendar/calendar-conduit.c (is_all_day): handle date
values
svn path=/trunk/; revision=14357
Diffstat (limited to 'calendar/conduits')
-rw-r--r-- | calendar/conduits/calendar/calendar-conduit.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/calendar/conduits/calendar/calendar-conduit.c b/calendar/conduits/calendar/calendar-conduit.c index 832651eb64..fcd976355d 100644 --- a/calendar/conduits/calendar/calendar-conduit.c +++ b/calendar/conduits/calendar/calendar-conduit.c @@ -346,6 +346,9 @@ is_all_day (CalClient *client, CalComponentDateTime *dt_start, CalComponentDateT { time_t dt_start_time, dt_end_time; icaltimezone *timezone; + + if (dt_start->value->is_date && dt_end->value->is_date) + return TRUE; timezone = get_timezone (client, dt_start->tzid); dt_start_time = icaltime_as_timet_with_zone (*dt_start->value, timezone); @@ -537,7 +540,7 @@ local_record_from_comp (ECalLocalRecord *local, CalComponent *comp, ECalConduitC CalComponentText *description; CalComponentDateTime dt_start, dt_end; CalComponentClassification classif; - icaltimezone *default_tz = get_default_timezone (); + icaltimezone *default_tz = ctxt->timezone; int i; g_return_if_fail (local != NULL); |