summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorKent Sutherland <git@ksuther.com>2016-12-18 15:10:26 -0600
committerKent Sutherland <git@ksuther.com>2016-12-18 15:10:26 -0600
commitfe7502356057b5f4379b4912ed633b162539d728 (patch)
treecba084fe18e061b8289a6efa3f09657ed1ceae2f /examples
parentd37107e47a803a3e2a9ecc55e664156c1575e0ed (diff)
downloadlibical-git-fe7502356057b5f4379b4912ed633b162539d728.tar.gz
Remove deprecated icaltime_from_timet
Use icaltime_from_timet_with_zone instead.
Diffstat (limited to 'examples')
-rw-r--r--examples/access_components.c12
1 files changed, 6 insertions, 6 deletions
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