fix alarm guide which was changed time usage 85/138485/2
authorJeesun Kim <iamjs.kim@samsung.com>
Wed, 12 Jul 2017 09:28:35 +0000 (18:28 +0900)
committerEditor Lionbridge <TizenEditor.SEL@lionbridge.com>
Wed, 12 Jul 2017 09:57:44 +0000 (12:57 +0300)
PS2: Reviewed.

Signed-off-by: Jeesun Kim <iamjs.kim@samsung.com>
Change-Id: Ib3bc30f47e2efd2915c626f4c980f3c7cb0d73b1

org.tizen.guides/html/native/personal/calendar_n.htm

index 85dad64..00af8c3 100644 (file)
@@ -576,7 +576,10 @@ calendar_db_get_all_records(_calendar_calendar_book._uri, 0, 0, &amp;calendar_bo
 calendar_record_h alarm = NULL;
 calendar_record_create(_calendar_alarm._uri, &amp;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);
@@ -2099,4 +2102,4 @@ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga
 </script>
 
 </body>
-</html>
\ No newline at end of file
+</html>