Override Timezone

Hi:

I have a situation where I need to override the timezone for the scheduler from what it uses when it's rendered through my server side Razor code. "@(Html.EJS().Schedule("schedule")...Render()". This is because the current value is stored in the browser's local storage, I'm overriding the value in the javascript document ready function. That doesn't seem to work and always uses the browser/users timezone. Are you able to override the timezone in this way?

Thanks

1 Reply 1 reply marked as answer

BS Balasubramanian Sattanathan Syncfusion Team December 11, 2020 08:09 AM UTC

  
Hi Scott, 
 
Greetings from Syncfusion Support. 
 
We have validated your requirement at our end and prepared a sample based on that by using the below code snippet. 
 
document.addEventListener("DOMContentLoaded", function () { 
    var schObj = document.querySelector('.e-schedule').ej2_instances[0]; 
    schObj.timezone = "America/New_York"; 
}); 
 
 
Kindly try the above sample and let us know if you need further assistance. 
 
Regards, 
Balasubramanian S 


Marked as answer
Loader.
Up arrow icon