Skip to content

Commit

Permalink
html-js-poll client: date.getMonth() is 0-based, prevent off-by-one
Browse files Browse the repository at this point in the history
  • Loading branch information
rohieb committed Jan 19, 2017
1 parent ab9f809 commit f987a8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/html-js-poll/status.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
return sprintf("%s, %d-%02d-%02d, %02d:%02d",
days[date.getDay()],
date.getFullYear(),
date.getMonth(),
date.getMonth() + 1, // 0-based
date.getDate(),
date.getHours(),
date.getMinutes()
Expand Down

0 comments on commit f987a8b

Please sign in to comment.