How to get client's timezone, as JS isolation feature is removed?

The Built-in JavaScript isolation feature has been marked as deprecated in 2022 Vol1 release. This link demonstrated how to use JavaScript to set TimeZone based on client's computer location: https://blazor.syncfusion.com/documentation/scheduler/timezone#display-appointments-based-on-clients-time-zone


I literally just copied that code for that function, but now I have no way not to remove options.IgnoreScriptIsolation = False ​in newer versions of Syncfusion Blazor. If I want that set timezone depending on client's location function back, what should I do?

Simply treat that link's code as my code in this discussion.



3 Replies 1 reply marked as answer

VS Venkateshwaran Saravanakumar Syncfusion Team September 14, 2023 01:36 PM UTC

Hi Desmond,

We have discontinued the Built-in JavaScript isolation feature to improve performance by loading scripts externally. This change only affects the Syncfusion library and does not impact the sample you mentioned for obtaining time zone information based on the client's computer location. Your sample should still work as expected. We've attached the sample for your reference. If you are still using the old feature, we recommend loading scripts externally via CDN, Static Web Assets, or CRG.



Regards,
Venkatesh


Attachment: BlazorTimeZone_144236e7.zip

Marked as answer

DE desmond September 16, 2023 07:26 AM UTC

Thanks, understand now.



SK Satheesh Kumar Balasubramanian Syncfusion Team September 18, 2023 05:12 AM UTC

You are most welcome.


Loader.
Up arrow icon