In date.js:236, you compute the hours for the toString format like:
var hou = this.getHours() || 12;
This means hour 0 and hour 12 are displayed the same way, which doesn't seem like what you want given that toString otherwise shows the time in 24-hour time. It causes confusing results like those below. I just removed the || 12; that seems like what is expected.
In date.js:236, you compute the hours for the toString format like:
This means hour 0 and hour 12 are displayed the same way, which doesn't seem like what you want given that toString otherwise shows the time in 24-hour time. It causes confusing results like those below. I just removed the
|| 12
; that seems like what is expected.