diff options
author | hs321.lee <hs321.lee@samsung.com> | 2013-10-28 21:07:19 +0900 |
---|---|---|
committer | hs321.lee <hs321.lee@samsung.com> | 2013-12-10 17:18:52 +0900 |
commit | 8e84cda762a1e4c6ea9fc9b869ed7495605af2a7 (patch) | |
tree | 9a2e3341b329828b7ccc2188ea3786b3ddcfd1b8 | |
parent | c0d43d95a28a230046619cda4a2332b8666aea00 (diff) | |
download | social-8e84cda762a1e4c6ea9fc9b869ed7495605af2a7.tar.gz social-8e84cda762a1e4c6ea9fc9b869ed7495605af2a7.tar.bz2 social-8e84cda762a1e4c6ea9fc9b869ed7495605af2a7.zip |
Set the minimum and maximum values about the end date of recurrence when it is beyond the value range
Change-Id: I78ad3850a3669d679d672ce1d8d75b51a63afcc4
Signed-off-by: hs321.lee <hs321.lee@samsung.com>
-rw-r--r-- | src/FScl_CalEventImpl.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/FScl_CalEventImpl.cpp b/src/FScl_CalEventImpl.cpp index 6bd181b..aeba234 100644 --- a/src/FScl_CalEventImpl.cpp +++ b/src/FScl_CalEventImpl.cpp @@ -1047,6 +1047,15 @@ _CalEventImpl::ConvertEventHandleToRecurrenceN(calendar_record_h eventHandle) co until = _CalendarbookUtil::ConvertEpochTimeToDateTime(untilCalendarTime.time.utime); } + if (until < _CalendarbookImpl::GetMinDateTime()) + { + until = _CalendarbookImpl::GetMinDateTime(); + } + else if(until > _CalendarbookImpl::GetMaxDateTime()) + { + until = _CalendarbookImpl::GetMaxDateTime(); + } + pRecurrence->SetUntil(&until); } else |