Getting user time zone in client side

In client side we can use this code to get timezone value of client using javascript.

Reference: Getting user time zone