How to get user timezone using jquery?

前端 未结 6 2077
长发绾君心
长发绾君心 2020-11-30 11:03

I would like to get their timezone with names like \'Asia/Calcutta\' or \'Australia/Darwin\'

I have php installed on myserver and i

6条回答
  •  死守一世寂寞
    2020-11-30 11:13

    You can get the timezone offset. Which you can use to calculate the approximate timezone. You can keep an associative list of timezone offset and the names. This method does not give any exact values, though.

提交回复
热议问题