Print Page | Close Window

Create/UpdateRecurrence break event starttime

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Calendar
Forum Description: Topics Related to Codejock Calendar
URL: http://forum.codejock.com/forum_posts.asp?TID=22280
Printed Date: 04 December 2024 at 2:22pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Create/UpdateRecurrence break event starttime
Posted By: brianleahy
Subject: Create/UpdateRecurrence break event starttime
Date Posted: 21 April 2014 at 4:26pm
I'm using powerbuilder, and trying to add recurrence.
 
I've observed the following:
 
First, when I call event.CreateRecurrence() on an existing event, the event's starttime immediately gets changed to 12/30/1899 00:00:00.
 
So then, I set the recurrence's startdate and starttime BOTH to (for instance):  4/16/2014 03:30:00
 
Then I call event.UpdateRecurrence(recurrence). 
 
Now the event's starttime changes to:  4/16/2014 00:00:00
 
The time portion is lost, and nothing I do will correct it.   On the calendar control, the event jumps to midnight.  In fact, it's like the event's starttime becomes read only once the recurrence is set.
 
How can I fix this?



Replies:
Posted By: brianleahy
Date Posted: 23 April 2014 at 5:36pm
Well, I found this notation lurking in the help files:

Remarks

The StartTime property holds the starting date and time of the event.

Important: Do NOT set the StartTime or " rel="nofollow - EndTime for a " rel="nofollow - Master event . These times are calculated internally and should not be changed. An event becomes a Master event when the " rel="nofollow - CreateRecurrence method is used on the event.


So - it's sounding like, once those attributes are set, there's no changing the event to a repeating event.




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net