From fe7502356057b5f4379b4912ed633b162539d728 Mon Sep 17 00:00:00 2001 From: Kent Sutherland Date: Sun, 18 Dec 2016 15:10:26 -0600 Subject: Remove deprecated icaltime_from_timet Use icaltime_from_timet_with_zone instead. --- examples/access_components.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'examples/access_components.c') diff --git a/examples/access_components.c b/examples/access_components.c index be73ba6f..4548d70f 100644 --- a/examples/access_components.c +++ b/examples/access_components.c @@ -30,13 +30,13 @@ icalcomponent* create_new_component() /* variable definitions */ icalcomponent* calendar; icalcomponent* event; - struct icaltimetype atime = icaltime_from_timet( time(0),0); + struct icaltimetype atime = icaltime_from_timet_with_zone(time(0), 0, icaltimezone_get_utc_timezone()); struct icalperiodtype rtime; icalproperty* property; /* Define a time type that will use as data later. */ - rtime.start = icaltime_from_timet( time(0),0); - rtime.end = icaltime_from_timet( time(0),0); + rtime.start = icaltime_from_timet_with_zone(time(0), 0, icaltimezone_get_utc_timezone()); + rtime.end = icaltime_from_timet_with_zone(time(0), 0, icaltimezone_get_utc_timezone()); rtime.end.hour++; /* Create calendar and add properties */ @@ -198,11 +198,11 @@ icalcomponent* create_new_component_with_va_args() /* This is a similar set up to the last routine */ icalcomponent* calendar; - struct icaltimetype atime = icaltime_from_timet( time(0),0); + struct icaltimetype atime = icaltime_from_timet_with_zone(time(0), 0, icaltimezone_get_utc_timezone()); struct icalperiodtype rtime; - rtime.start = icaltime_from_timet( time(0),0); - rtime.end = icaltime_from_timet( time(0),0); + rtime.start = icaltime_from_timet_with_zone(time(0), 0, icaltimezone_get_utc_timezone()); + rtime.end = icaltime_from_timet_with_zone(time(0), 0, icaltimezone_get_utc_timezone()); rtime.end.hour++; /* Some of these routines are the same as those in the previous -- cgit v1.2.1