javascript - Moment does not get correct time when local machine time is wrong -


when computer have wrong time (not synchronised standard internet time), momentjs return wrong time. used moment() , moment.utc() function, of them have same result.

how can global time independently local time ? need use external service , pass moment ?

you need pass correct time moment external service, moment not more value-added api native javascript time, can´t see more time local machine.

to time internet can use google time api;

https://developers.google.com/maps/documentation/timezone/intro


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -