Here I want to take the time zone 'America / Santiago'... But i get 'invalid date' result, why?
Remember, I just want to retrieve the time data, from the 'new Date ()' function, not from the Javascript Libraries
And remember I do not want to take client time automatically, I want to take the time zone 'America / Santiago', but I'm from Indoneisa
Not the 'getTimezoneOffset' function, but using the 'new Date ()' function, I also know the 'getTimezoneOffset' function, but this function takes the timezone automatically depending on which user is in which time zone.
function showTheTime() {
var da_te = new Date('America/Santiago');
document.getElementById("result").innerHTML = da_te;
}
showTheTime();
<p id="result"></p>