Make time independent of browser time zone

前端 未结 0 358
-上瘾入骨i
-上瘾入骨i 2021-01-22 19:44

i am printing a timestamp in console of chrome browser using following code,

moment("2021-01-12 00:00:00").utc().utcOffset(-new Date().getTimezoneOffset         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题