My date when midnight arrives continues the day before, I wanted it to go to the next day.
For example:
At 23:50 on the 6th, it shows Saturday, October 6, 2018 at 00:00
As the midnight is already the next day, I want it to stay: Sunday, October 7, 2018, at 00:00
PS: I do not know how to program c (:
<html>
<head>
<script language="javascript" type="text/javascript">
var d = new Date();
now = new Date;
monName = new Array ("Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro");
dayName = new Array ("Domingo","Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sábado");
hourName = new Array (00,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,"00");
</script>
</head>
<body>
<script language="javascript" type="text/javascript">
document.write ("<center><span style='width: 50%; font-size: 18px; line-height: 24px; color: #000000;'>" + dayName [now.getDay()] + ", " + now.getDate() + " de " + monName [now.getMonth()] + " de " + now.getFullYear() + ", às " + hourName [now.getHours()+1] + ":00" + " </span></center>")
</script>
</head>
</html>