calendar_record_h alarm = NULL;
calendar_record_create(_calendar_alarm._uri, &alarm);
calendar_record_set_int(alarm, _calendar_alarm.tick_unit, CALENDAR_ALARM_TIME_UNIT_SPECIFIC);
-calendar_record_set_lli(alarm, _calendar_alarm.time, (1404036000 - 60)); /* Before 60 sec */
+calendar_time_s at = {0};
+at.type = CALENDAR_TIME_UTIME;
+at.time.utime = (1404036000 - 60); /* 60 secs before 1404036000 (Sun, 29 Jun 2014 10:00:00 GMT) */
+calendar_record_set_caltime(alarm, _calendar_alarm.alarm_time, at);
/* Add alarm as child */
calendar_record_add_child_record(event, _calendar_event.calendar_alarm, alarm);
</script>
</body>
-</html>
\ No newline at end of file
+</html>