This is a migrated thread and some comments may be shown as answers.

How to change Timezone in .ics File which work against Google, Outlook, Android and apple?

1 Answer 629 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Uma
Top achievements
Rank 1
Uma asked on 30 Oct 2019, 10:52 AM

Hi Team,

       We are exporting our appointment details like below (code section) to generate .ics file. When we book an appointment in our WOOFware application, the email confirmation has an attached ICS file to add the appointment to the client's calendar.   The vcaappnt.ics attachment itself is working correctly.  However, if the client uses gmail, there is a banner at the top that allows them to add that ics to their Google calendar.

Issue:  When the appointment is close to a daylight savings time, the google calendar option is adding the appointment 1 hour later than the appointment. Please see the below,

Appointment time - Oct 31 @6 PM – 6.15PM EDT. But, in google it shows as 4.30am – 4.45am IST instead of 3:30am-3.45am IST. (please see the attachment - IST Time format)

Appointment time - Oct 31 @6 PM-6.15 PM EDT. But, in google it shows as 4pm – 4.15pmIST instead of 3pm-3.15pm IST.(please see the attachment - PDT Time format)

Code

using Telerik.Windows.Controls.ScheduleView;
ICalendar.AppointmentCalendarExporter exporter = new ICalendar.AppointmentCalendarExporter();
// appointment details exported(included timezone, location,time etc...)  
exporter.Export(appointments, sw);

The time zone will be PDT, EDT, CDT – and it will erroneously add 1 hour to the appointment(.ics file) and the time zone will say PST, EST, CST  and it will show the correct time

The actual .ics file is being generated using a Telerik library. That’s the one that is creating these RRULE entries in the .ics file.
So, different time gives in google and outlook using this .ics file? How to resolve this ?

Thanks,
Srinivasan


1 Answer, 1 is accepted

Sort by
0
Uma
Top achievements
Rank 1
answered on 05 Nov 2019, 05:58 AM
Any updates?
Tags
ScheduleView
Asked by
Uma
Top achievements
Rank 1
Answers by
Uma
Top achievements
Rank 1
Share this question
or