diff options
author | louie <louie@shprung.com> | 2022-04-24 17:45:00 -0700 |
---|---|---|
committer | louie <louie@shprung.com> | 2022-04-24 17:45:00 -0700 |
commit | feb2422c7b43861a254c0fa3491b85cf4cbe065a (patch) | |
tree | 3343095c1a93cf6e69cc1d36a1e159e0c269e70a | |
parent | ed3459e004474eac91b499bce26a5636e7bbdcdd (diff) |
Small +1 fix
-rw-r--r-- | assignment_list.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/assignment_list.js b/assignment_list.js index bc77408..9e9dc3d 100644 --- a/assignment_list.js +++ b/assignment_list.js @@ -148,9 +148,9 @@ function draw_assignment(entry){ assignment_html += "'>"; if(due_date){ assignment_html += days[due_date_object.getDay()] + ", "; - if(due_date_object.getMonth()+1 < 10) assignment_html += "0"; + if(due_date_object.getMonth()+1 < 11) assignment_html += "0"; assignment_html += due_date_object.getMonth()+1 + "/"; - if(due_date_object.getDate()+1 < 10) assignment_html += "0"; + if(due_date_object.getDate()+1 < 11) assignment_html += "0"; assignment_html += due_date_object.getDate() } else assignment_html += due_date_alt; |