Skip to content

Commit

Permalink
Display correct dates in UI.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Rossi committed Oct 10, 2013
1 parent c8794b8 commit 8f57c59
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lms/djangoapps/courseware/grades.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
from xmodule import graders
from xmodule.capa_module import CapaModule
from xmodule.graders import Score
from xmodule.utils import get_extended_due_date
from .models import StudentModule

log = logging.getLogger("mitx.courseware")
Expand Down Expand Up @@ -325,7 +326,7 @@ def progress_summary(student, request, course, model_data_cache):
'scores': scores,
'section_total': section_total,
'format': module_format,
'due': section_module.lms.due,
'due': get_extended_due_date(section_module.lms),
'graded': graded,
})

Expand Down
3 changes: 2 additions & 1 deletion lms/djangoapps/courseware/module_render.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
from xmodule.modulestore import Location
from xmodule.modulestore.django import modulestore
from xmodule.modulestore.exceptions import ItemNotFoundError
from xmodule.utils import get_extended_due_date
from xmodule.x_module import ModuleSystem
from xmodule_modifiers import replace_course_urls, replace_jump_to_id_urls, replace_static_urls, add_histogram, wrap_xmodule, save_module # pylint: disable=F0401

Expand Down Expand Up @@ -110,7 +111,7 @@ def toc_for_course(user, request, course, active_chapter, active_section, model_
sections.append({'display_name': section.display_name_with_default,
'url_name': section.url_name,
'format': section.lms.format if section.lms.format is not None else '',
'due': section.lms.due,
'due': get_extended_due_date(section.lms),
'active': active,
'graded': section.lms.graded,
})
Expand Down

0 comments on commit 8f57c59

Please sign in to comment.