Well, I'm having a hard time getting the date and time in JavaScript when the computer or system is having this incorrect data.
- Official time: 08:35 - 07/14/2016 - Brasilia timetable
- Computer Time: 23:46 - 7/12/2016
No matter what method I try in JavaScript, the time always comes from Hora do computador
, even if you try getUTCDate()
, getTimezoneOffset()
, etc ...
Is there any way to fix this problem with just JavaScript? Or do I really need to rely on a time taken directly from my server?
Note: It is important that the time is correct because it controls the e-commerce operation of the site.