*
* @since 2.0
*
- * @return The time zone
- * @see Tizen::Locales::TimeZone
+ * @return The time zone based on the time zone ID and the start time of the %CalEvent instance
+ * @see Tizen::Locales::TimeZone::GetTimeZone(const Tizen::Base::String&, const Tizen::Base::DateTime&, Tizen::Locales::TimeZone&)
*/
Tizen::Locales::TimeZone GetTimeZone(void) const;
* @param[in] timeZone The time zone to set
* @exception E_SUCCESS The method is successful.
* @exception E_FAILURE The method has failed.
- * @remarks As anniversaries and all day events are not affected by a time zone, it is recommended not to set the time zone.
- * @see Tizen::Locales::TimeZone
+ * @remarks
+ * - As all day events are not affected by a time zone, it is recommended not to set the time zone.
+ * - Only the time zone ID of the specified @c timeZone is set to the %CalEvent instance, and the other properties are ignored.
*/
result SetTimeZone(const Tizen::Locales::TimeZone& timeZone);
calendar_record_get_str_p(__eventRecord.GetHandle(), _calendar_event.start_tzid, &pTimeZoneId);
if (pTimeZoneId != null && strlen(pTimeZoneId) > 0)
{
- TimeZone::GetTimeZone(pTimeZoneId, timeZone);
+ DateTime startTime = GetStartTime();
+
+ TimeZone::GetTimeZone(pTimeZoneId, startTime, timeZone);
}
return timeZone;