Get browser's timezone offset


Sorry if I missed something obvious — what’s the best way to run some JS code on the client, and access the return value server-side?

var offset = new Date().getTimezoneOffset();

Or better yet, this: (jstz object)




  • You must to post comments

Hi Andrew,

you can find a sample using jstz and the different options to integrate it into Wisej here:

Few notes:

  • The jstz library is loaded in default.html
  • The window executes javascript at loading using the JavaScript extender, see the JavaScript property in the designer
  • The two buttons execute javascript in the context of the form
  • Please make sure to use the latest dev build (1.3.17) as we needed to fix issue WJ-7890 to make it work.

Best regards


  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.