toISOString () devuelve fecha incorrecta

¿Por qué esta pieza de código regresó a la fecha de mañana?

Debe regresar 2013-08-31 y no 2013-09-01 ya que estamos el 31 de agosto.

http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_toisostring

function myFunction() {
  var d = new Date();
  var x = document.getElementById("demo");
  x.innerHTML = d.toISOString();
}
<p id="demo">Click the button to display the date and time as a string, using the ISO
  standard.</p>
<button onclick="myFunction()">Try it</button>

Respuestas a la pregunta(1)

Su respuesta a la pregunta