aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorKidd Wang <kiddwang@src.gnome.org>2004-03-01 13:34:35 +0800
committerKidd Wang <kiddwang@src.gnome.org>2004-03-01 13:34:35 +0800
commita3cabdee25ae110ba412875576ac49d009aefcd3 (patch)
tree8808914f65ee4d07574e271e42aa42ea02f8f36a /calendar
parent36f4e48969ffa986aa9ded2b0fb0af66fdd62a7a (diff)
downloadgsoc2013-evolution-a3cabdee25ae110ba412875576ac49d009aefcd3.tar
gsoc2013-evolution-a3cabdee25ae110ba412875576ac49d009aefcd3.tar.gz
gsoc2013-evolution-a3cabdee25ae110ba412875576ac49d009aefcd3.tar.bz2
gsoc2013-evolution-a3cabdee25ae110ba412875576ac49d009aefcd3.tar.lz
gsoc2013-evolution-a3cabdee25ae110ba412875576ac49d009aefcd3.tar.xz
gsoc2013-evolution-a3cabdee25ae110ba412875576ac49d009aefcd3.tar.zst
gsoc2013-evolution-a3cabdee25ae110ba412875576ac49d009aefcd3.zip
ignore the timezone info of all-day events.
* gui/print.c: (print_date_label): ignore the timezone info of all-day events. svn path=/trunk/; revision=24919
Diffstat (limited to 'calendar')
-rw-r--r--calendar/ChangeLog5
-rw-r--r--calendar/gui/print.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 8954da6c53..a2ce6a63d1 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,8 @@
+2004-03-01 Kidd Wang <kidd.wang@sun.com>
+
+ * gui/print.c: (print_date_label): ignore the timezone info of all-day
+ events.
+
2004-02-27 JP Rosevear <jpr@ximian.com>
* gui/gnome-cal.h: remove proto
diff --git a/calendar/gui/print.c b/calendar/gui/print.c
index 21bf5ccba5..6ded2bf960 100644
--- a/calendar/gui/print.c
+++ b/calendar/gui/print.c
@@ -2215,7 +2215,7 @@ print_date_label (GnomePrintContext *pc, ECalComponent *comp, ECal *client,
e_cal_component_get_dtstart (comp, &datetime);
if (datetime.value) {
start_zone = get_zone_from_tzid (client, datetime.tzid);
- if (!start_zone)
+ if (!start_zone || datetime.value->is_date)
start_zone = calendar_config_get_icaltimezone ();
start = icaltime_as_timet_with_zone (*datetime.value,
start_zone);
@@ -2225,7 +2225,7 @@ print_date_label (GnomePrintContext *pc, ECalComponent *comp, ECal *client,
e_cal_component_get_dtend (comp, &datetime);
if (datetime.value) {
end_zone = get_zone_from_tzid (client, datetime.tzid);
- if (!end_zone)
+ if (!end_zone || datetime.value->is_date)
end_zone = calendar_config_get_icaltimezone ();
end = icaltime_as_timet_with_zone (*datetime.value,
end_zone);
@@ -2235,7 +2235,7 @@ print_date_label (GnomePrintContext *pc, ECalComponent *comp, ECal *client,
e_cal_component_get_due (comp, &datetime);
if (datetime.value) {
due_zone = get_zone_from_tzid (client, datetime.tzid);
- if (!due_zone)
+ if (!due_zone || datetime.value->is_date)
due_zone = calendar_config_get_icaltimezone ();
due = icaltime_as_timet_with_zone (*datetime.value,
due_zone);