aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/cal-util/cal-component.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2002-08-14 02:25:28 +0800
committerDan Winship <danw@src.gnome.org>2002-08-14 02:25:28 +0800
commita3f9b35f4fc21de5b9574619d88763a0fbea821a (patch)
tree2a93b017ca40ebf4aeed94d6ca4f898ffd192a2b /calendar/cal-util/cal-component.c
parent0c136db74641440b148873d0b7da908b51e598f3 (diff)
downloadgsoc2013-evolution-a3f9b35f4fc21de5b9574619d88763a0fbea821a.tar
gsoc2013-evolution-a3f9b35f4fc21de5b9574619d88763a0fbea821a.tar.gz
gsoc2013-evolution-a3f9b35f4fc21de5b9574619d88763a0fbea821a.tar.bz2
gsoc2013-evolution-a3f9b35f4fc21de5b9574619d88763a0fbea821a.tar.lz
gsoc2013-evolution-a3f9b35f4fc21de5b9574619d88763a0fbea821a.tar.xz
gsoc2013-evolution-a3f9b35f4fc21de5b9574619d88763a0fbea821a.tar.zst
gsoc2013-evolution-a3f9b35f4fc21de5b9574619d88763a0fbea821a.zip
Remove a bunch of old #if 0 code. (update_item): Set
* gui/e-itip-control.c: Remove a bunch of old #if 0 code. (update_item): Set X-MICROSOFT-CDO-REPLYTIME here. * gui/itip-utils.c (comp_toplevel_with_zones): Don't set it here. * cal-util/cal-component.c (ensure_mandatory_properties): Use icaltime_current_time_with_zone rather than rolling our own. (cal_component_strip_errors): Remove unused variable. svn path=/trunk/; revision=17770
Diffstat (limited to 'calendar/cal-util/cal-component.c')
-rw-r--r--calendar/cal-util/cal-component.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/calendar/cal-util/cal-component.c b/calendar/cal-util/cal-component.c
index 2f5c88e4ca..b91d4b26ad 100644
--- a/calendar/cal-util/cal-component.c
+++ b/calendar/cal-util/cal-component.c
@@ -914,11 +914,9 @@ ensure_mandatory_properties (CalComponent *comp)
}
if (!priv->dtstamp) {
- time_t tim;
struct icaltimetype t;
- tim = time (NULL);
- t = icaltime_from_timet_with_zone (tim, FALSE, icaltimezone_get_utc_timezone ());
+ t = icaltime_current_time_with_zone (icaltimezone_get_utc_timezone ());
priv->dtstamp = icalproperty_new_dtstamp (t);
icalcomponent_add_property (priv->icalcomp, priv->dtstamp);
@@ -1094,7 +1092,6 @@ void
cal_component_strip_errors (CalComponent *comp)
{
CalComponentPrivate *priv;
- icalproperty *prop;
g_return_if_fail (comp != NULL);
g_return_if_fail (IS_CAL_COMPONENT (comp));