Appointments not showing at correct time in scheduler

Dear syncfusion support, my appointments are showing up two hours later than the saved timestamp of the appointment. It is really weird because when I save an appointment for example at 10:00 (setting the timezone on Europe/ Amsterdam) it gets saved correctly in the MongoDB, but it shows up on two hours later than that time on my scheduler. 

This is how the appointment is saved:



Then it is displayed wrongly at 12:00 



What could possibly cause this? Please let me know if you need more info or code.


1 Reply 1 reply marked as answer

RV Ravikumar Venkatesan Syncfusion Team September 25, 2020 12:33 PM UTC

Hi Youssef, 
  
Greeting from Syncfusion support. 
  
We have validated your reported query at our end. The event start time and end time you get from the DB is set to the UTC time zone and you are setting up the Start and End time zone to the event set as “Europe/Amsterdam”(UTC +1) and for this time zone daylight saving also applicable now. Because of that when displaying the event in schedule adds two hours to the start and end times and the event rendered after two hours from the start date you added. If you need to display the appointments at the same time you have in the DB you need to set the timezone property of the schedule to “UTC” like the below. We have prepared a sample for your reference and it can be available below. 
  
[app.component.html] 
  <ejs-schedule #scheduleObj width='100%' height='650px' timezone="UTC" [(currentView)]="currentView" (eventRendered)="oneventRendered($event)"> 
  </ejs-schedule> 
  
  
Kindly refer to the below links for know more about timezone in schedule and get back to us if you need any further assistance. 
  
  
Regards, 
Ravikumar Venkatesan 
  


Marked as answer
Loader.
Up arrow icon