From 76553cb8ea785aad480a2ed56723c87b1b6e0a2e Mon Sep 17 00:00:00 2001 From: Jeesun Kim Date: Fri, 7 Jul 2017 16:12:56 +0900 Subject: [PATCH] apply type in time Change-Id: Id340416b2580c2fa2dc1dd608b2f95cb086c7dfd --- src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarRecord.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarRecord.cs b/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarRecord.cs index a6b25d0..224ff4e 100644 --- a/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarRecord.cs +++ b/src/Tizen.Pims.Calendar/Tizen.Pims.Calendar/CalendarRecord.cs @@ -146,7 +146,9 @@ namespace Tizen.Pims.Calendar internal static Interop.Calendar.Record.DateTime ConvertCalendarTimeToStruct(CalendarTime value) { Interop.Calendar.Record.DateTime time = new Interop.Calendar.Record.DateTime(); - if ((int)CalendarTime.Type.Utc == time.type) + time.type = value._type; + + if ((int)CalendarTime.Type.Utc == value._type) { DateTime epoch = new DateTime(1970, 1, 1, 0, 0, 0); time.utime = (value.UtcTime.Ticks - epoch.Ticks) / 10000000; @@ -175,6 +177,7 @@ namespace Tizen.Pims.Calendar { value = new CalendarTime(time.year, time.month, time.mday, time.hour, time.minute, time.second); } + value._type = time.type; return value; } -- 2.7.4