Schedule Appointment Recurrence Rule UTC Timezone

We have issue with set recurrence Rule after Upgrading System OS.

Below is the Example for Recurring Appointment:

Example: -  select “Until” date – 28-02-2020. Today Date: 02/26/2020


When Initializing Syncfusion Scheduler we set Timezone based on Client Machine like Below It set from Client Browser Like Below :

var currentTimeZone = Intl.DateTimeFormat().resolvedOptions().timeZone; //Get Current TimeZone for the Client Machine

var scheduleObj = new ej.schedule.Schedule({

                width: '100%',

                height: '650px',

                selectedDate: scheduleDate,

                currentView: 'Day',

                allowDragAndDrop: true,

                showWeekend: true,

                timezone: currentTimeZone,

 

When we tried to save Appoinment and Check RecurrenceRule set by Syncfusion Internal Function

 like Below: For e.g If we Save Appointment

 “FREQ=DAILY; INTERVAL=1; UNTIL=20200228T025435Z;”

Highlighted yellow Mark always Set DateTime.UtcNow().

Here we already Set TimeZone in Calendar then why it add UTC Time/zulu time Is there any way to append Time in Rule based on TimeZone Set as per Calendar.

Due to UtcTime append in Recursive Rule In Daily Type the Major Problem generates when the Date of UTC and TimeZone are different.

How to append Time in Recursion Rule Time based on Calendar TimeZone?


3 Replies

RV Ravikumar Venkatesan Syncfusion Team February 27, 2020 01:40 PM UTC

Hi Rajat, 

Greetings from Syncfusion support. 

In RecurrenceRule, UNTIL date value is maintained in UTC time format, which is the best way to handling the timezone conversion.  We had handle timezone related conversion in source level based on the scheduler timezone and system timezone values. We cannot modify the UNTIL date value based on Calendar Timezone, because the events loaded in different timezones is based on its value. We regret to let you know, currently your requirement is not feasible at our end. 

Regards, 
Ravikumar Venkatesan 



MP Mayank Patel February 28, 2020 06:46 AM UTC

Hi Ravikumar Venkatesan ,


Thanks for Update if recurrence Rule Until Date Not Provide Calendar Time Zone then we need to Hide this Daily Functionality until we change Our Back end Business Logic.

Is there any Way to Hide "Daily" Option From Repeat Drop down.




Let me know if  you need more information

Thanks
Mayank


RV Ravikumar Venkatesan Syncfusion Team March 2, 2020 10:15 AM UTC

Hi Mayank Patel, 

Thanks for the update. 

We have created a sample based on your requirement by using the popupOpen event like the below code. The sample is available in below link. 

let scheduleObj: Schedule = new Schedule({ 
  width: '100%', 
  height: '650px', 
  selectedDate: new Date(2018, 1, 15), 
  eventSettings: { dataSource: [] }, 
  popupOpen: (args: PopupOpenEventArgs) => { 
    if (args.type == 'Editor') { 
      scheduleObj.eventWindow.recurrenceEditor.frequencies = ['none', 'weekly', 'monthly', 'yearly']; 
    } 
  } 
}); 


Kindly try the above sample and get in touch with us If you would require any further assistance. 


Regards, 
Ravikumar Venkatesan 


Loader.
Up arrow icon