aboutsummaryrefslogtreecommitdiffstats
path: root/my-evolution
diff options
context:
space:
mode:
Diffstat (limited to 'my-evolution')
-rw-r--r--my-evolution/ChangeLog7
-rw-r--r--my-evolution/e-summary-tasks.c26
2 files changed, 23 insertions, 10 deletions
diff --git a/my-evolution/ChangeLog b/my-evolution/ChangeLog
index 0599fdb8f9..d820da715b 100644
--- a/my-evolution/ChangeLog
+++ b/my-evolution/ChangeLog
@@ -1,5 +1,12 @@
2001-09-27 Iain Holmes <iain@ximian.com>
+ * e-summary-tasks.c (generate_html): Pass the summary to
+ get_todays_uids.
+ (get_todays_uids): Use the timezone stuff and use the due date instead
+ of the end time.
+
+2001-09-27 Iain Holmes <iain@ximian.com>
+
* e-summary-preferences.c: (rdfs[]): Removed the broken RDFs
(mail_all_select_row_cb): Don't turn on the -> button if the folder is
already added.
diff --git a/my-evolution/e-summary-tasks.c b/my-evolution/e-summary-tasks.c
index 05cb741ee0..9ed5c6bc55 100644
--- a/my-evolution/e-summary-tasks.c
+++ b/my-evolution/e-summary-tasks.c
@@ -160,20 +160,23 @@ sort_uids (gconstpointer a,
}
static GList *
-get_todays_uids (CalClient *client,
+get_todays_uids (ESummary *summary,
+ CalClient *client,
GList *uids)
{
GList *today = NULL, *p;
- time_t todays_end, todays_start;
+ time_t todays_end, todays_start, t;
- todays_start = time_day_begin (time (NULL));
- todays_end = time_day_end (time (NULL));
+ t = time (NULL);
+ todays_start = time_day_begin_with_zone (t, summary->tz);
+ todays_end = time_day_end_with_zone (t, summary->tz);
for (p = uids; p; p = p->next) {
char *uid;
CalComponent *comp;
CalClientGetStatus status;
- CalComponentDateTime end;
+ CalComponentDateTime due;
+ icaltimezone *zone;
time_t endt;
uid = p->data;
@@ -182,15 +185,18 @@ get_todays_uids (CalClient *client,
continue;
}
- cal_component_get_dtend (comp, &end);
- if (end.value != 0) {
- endt = icaltime_as_timet (*end.value);
+ cal_component_get_due (comp, &due);
+
+ cal_client_get_timezone (client, due.tzid, &zone);
+ if (due.value != 0) {
+ icaltimezone_convert_time (due.value, zone, summary->tz);
+ endt = icaltime_as_timet (*due.value);
if (endt >= todays_start && endt <= todays_end) {
today = g_list_append (today, g_strdup (uid));
}
}
- cal_component_free_datetime (&end);
+ cal_component_free_datetime (&due);
}
if (today == NULL) {
@@ -219,7 +225,7 @@ generate_html (gpointer data)
if (summary->preferences->show_tasks == E_SUMMARY_CALENDAR_TODAYS_TASKS && uids != NULL) {
GList *tmp;
- tmp = get_todays_uids (tasks->client, uids);
+ tmp = get_todays_uids (summary, tasks->client, uids);
cal_obj_uid_list_free (uids);
uids = tmp;