get client time zone from browser
问题 Is there a reliable way to get a timezone from client browser? I saw the following links but I want a more robust solution. Auto detect a time zone with JavaScript Timezone detection in JavaScript 回答1: Look at this repository pageloom it is helpful download jstz.min.js and add a function to your html page <script language="javascript"> function getTimezoneName() { timezone = jstz.determine() return timezone.name(); } </script> and call this function from your display tag 回答2: Half a decade