开发者

How do I get different timezone date in javascript?

开发者 https://www.devze.com 2023-01-11 13:15 出处:网络
I have timezone stored with me in a var like: timezone = \"America/Los_Angeles\". So by providing th开发者_Go百科is timezone, can I get the LA\'s current time in Javascript?Here\'s an article that ill

I have timezone stored with me in a var like: timezone = "America/Los_Angeles". So by providing th开发者_Go百科is timezone, can I get the LA's current time in Javascript?


Here's an article that illustrates how this could be done assuming you know the timezone offset.

0

精彩评论

暂无评论...
验证码 换一张
取 消