How can I get the timezone name in JavaScript?

后端 未结 8 1653
时光取名叫无心
时光取名叫无心 2020-12-12 15:37

I know how to get the timezone offset, but what I need is the ability to detect something like \"America/New York.\" Is that even possible from JavaScript or is that somethi

8条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-12 16:11

    Retrieve timezone by name (i.e. "America/New York")

    moment.tz.guess();
    

提交回复
热议问题