aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/pcs
diff options
context:
space:
mode:
authorJP Rosevear <jpr@helixcode.com>2000-10-11 16:04:27 +0800
committerJP Rosevear <jpr@src.gnome.org>2000-10-11 16:04:27 +0800
commitc0f20d73a5e0d6c4af91fff32a53fe5c4ee96e47 (patch)
tree5903ad1fcc0fcae2dc77f285601c550da1f248e5 /calendar/pcs
parent4d5ebbc363352f20b4ffa21311f0db0df5d8023c (diff)
downloadgsoc2013-evolution-c0f20d73a5e0d6c4af91fff32a53fe5c4ee96e47.tar
gsoc2013-evolution-c0f20d73a5e0d6c4af91fff32a53fe5c4ee96e47.tar.gz
gsoc2013-evolution-c0f20d73a5e0d6c4af91fff32a53fe5c4ee96e47.tar.bz2
gsoc2013-evolution-c0f20d73a5e0d6c4af91fff32a53fe5c4ee96e47.tar.lz
gsoc2013-evolution-c0f20d73a5e0d6c4af91fff32a53fe5c4ee96e47.tar.xz
gsoc2013-evolution-c0f20d73a5e0d6c4af91fff32a53fe5c4ee96e47.tar.zst
gsoc2013-evolution-c0f20d73a5e0d6c4af91fff32a53fe5c4ee96e47.zip
The element is "pilot_id" not "pilotid". Update both maps (compute_pid):
2000-10-11 JP Rosevear <jpr@helixcode.com> * conduits/todo/todo-conduit.c (map_sax_start_element): The element is "pilot_id" not "pilotid". Update both maps (compute_pid): Utility function to set a local records pid (local_record_from_comp): Compute the pid and status here, no longer use the old cal_component pilot interfaces (free_match): Its a *local not a **local * conduits/calendar/calendar-conduit.c: same as above * conduits/todo/todo-conduit.h: Have both a uid and pid map * conduits/todo/calendar-conduit.h: same as above svn path=/trunk/; revision=5836
Diffstat (limited to 'calendar/pcs')
-rw-r--r--calendar/pcs/cal-backend.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/calendar/pcs/cal-backend.c b/calendar/pcs/cal-backend.c
index d5609d59f1..f07b975413 100644
--- a/calendar/pcs/cal-backend.c
+++ b/calendar/pcs/cal-backend.c
@@ -498,6 +498,7 @@ cal_backend_log_sync (CalBackend *backend)
GSList *l;
int ret;
time_t start_time = (time_t) - 1;
+ time_t end_time = (time_t) - 1;
g_return_val_if_fail (backend->uri != NULL, FALSE);
@@ -552,10 +553,14 @@ cal_backend_log_sync (CalBackend *backend)
|| entry->time_stamp < start_time)
start_time = entry->time_stamp;
+ if (end_time == (time_t) - 1
+ || entry->time_stamp > end_time)
+ end_time = entry->time_stamp;
+
g_free (entry);
}
cal_backend_set_node_timet (tnode, "start", start_time);
- cal_backend_set_node_timet (tnode, "end", time (NULL));
+ cal_backend_set_node_timet (tnode, "end", end_time);
g_slist_free (backend->entries);
backend->entries = NULL;