summaryrefslogtreecommitdiff
path: root/assignment_list.js
diff options
context:
space:
mode:
Diffstat (limited to 'assignment_list.js')
-rw-r--r--assignment_list.js4
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;