How to get User Time Zone in WordPress?

Since WordPress is a server-side framework/CMS, it likely doesn’t have the functionality you’re looking for. If you’re looking for ways to obtain this information, the most reliable would likely be to ask the user.

To make it as painless as possible for the user, this functionality could be achieved via client-side scripting (ie. JavaScript) where you attempt to infer the user’s timezone:

-new Date().getTimezoneOffset()/60;

And then ask the user to confirm that it is the correct timezone. Keep in mind, client side code is run on the user’s machine and can be disabled entirely.