TimeZone

When the angular datamanager calls the update procedure it is sending the data in UTC timezone but when it makes the call it is not transforming the events time in CST. 

For example, when I set up event from 9 to 9:30 am CST it stores the data in database as 3:00 to 3:30 pm . But when I retrieve the data it returns back as 3 to 3:30 and does not convert it to CST.

Any help is greatly appreciated.

Thanks,

Ameet  

3 Replies 1 reply marked as answer

BS Balasubramanian Sattanathan Syncfusion Team December 24, 2020 10:05 AM UTC

Hi Ameet, 

Greetings from Syncfusion Support. 

We have validated and checked your reported scenario at our end by preparing the below sample. But we are unable to reproduce it. Since the appointments are created properly with given time details in UI and as well as DB. 


Here is the video demo that works as expected. 


Kindly try the above links and let us know the below details if the problem is not resolved. 
  • Share scheduler related code snippets along with your system time-zone details.
  • Try to reproduce the problem in the above sample or else
  • Share issue reproduced sample with steps which would help us to provide the solution at the earliest.

Regards, 
Balasubramanian S

Marked as answer

AM Ameet December 28, 2020 05:34 PM UTC

This has been fixed. I was missing the following code in my WEB API .NET core project -
            services.AddControllers()
                .AddNewtonsoftJson(options =>
                {
                    options.SerializerSettings.DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Local;
                });

After adding that code everything started working.

Thanks,

Ameet


VM Vengatesh Maniraj Syncfusion Team December 29, 2020 12:07 PM UTC

Hi Ameet, 

Thanks for the update. 

We are happy that your problem has resolved now. 

Please get back to us if you need any further assistance. 

Regards, 
Vengatesh  


Loader.
Up arrow icon