How to automatically detect user's timezone?

前端 未结 5 824
鱼传尺愫
鱼传尺愫 2020-11-29 08:55

hi i am creating a web application , where if a user register we will show the created date.

For that we are using Current time stamp in my sql table.Which shows ser

5条回答
  •  星月不相逢
    2020-11-29 09:19

    Use javascript solution

    http://www.onlineaspect.com/2007/06/08/auto-detect-a-time-zone-with-javascript/

    Demo should show your timezone in select box.

    http://onlineaspect.com/examples/timezone/index.html (Dead link)

提交回复
热议问题