How to get server timezone in javascript

前端 未结 3 2013
攒了一身酷
攒了一身酷 2021-01-21 10:59

I want to set different timezone in Javascript.Currently It is showing date and time zone of local machine or client\'s PC date /timezone.

Regards,

3条回答
  •  醉梦人生
    2021-01-21 11:17

    The only way to do this would be to include the timezone in the server's response or to make an ajax call from the javascript browser client to the server to get the server's timezone.

提交回复
热议问题