diff --git a/lms/djangoapps/instructor/views/instructor_dashboard.py b/lms/djangoapps/instructor/views/instructor_dashboard.py index 8c3327f3a2..75eeae3895 100644 --- a/lms/djangoapps/instructor/views/instructor_dashboard.py +++ b/lms/djangoapps/instructor/views/instructor_dashboard.py @@ -48,7 +48,6 @@ from certificates.models import ( ) from certificates import api as certs_api from bulk_email.models import BulkEmailFlag -from util.date_utils import get_default_time_display from class_dashboard.dashboard_data import get_section_display_name, get_array_section_has_problem from .tools import get_units_with_due_date, title_or_url @@ -430,8 +429,8 @@ def _section_course_info(course, access): 'course_display_name': course.display_name, 'has_started': course.has_started(), 'has_ended': course.has_ended(), - 'start_date': get_default_time_display(course.start), - 'end_date': get_default_time_display(course.end) or _('No end date set'), + 'start_date': course.start, + 'end_date': course.end, 'num_sections': len(course.children), 'list_instructor_tasks_url': reverse('list_instructor_tasks', kwargs={'course_id': unicode(course_key)}), } diff --git a/lms/templates/courseware/accordion.html b/lms/templates/courseware/accordion.html index 2327f028de..b0c9cab9a5 100644 --- a/lms/templates/courseware/accordion.html +++ b/lms/templates/courseware/accordion.html @@ -2,7 +2,6 @@ <%namespace name='static' file='../static_content.html'/> <%! from django.core.urlresolvers import reverse - from util.date_utils import get_time_display from django.utils.translation import ugettext as _ from django.conf import settings from openedx.core.djangolib.markup import HTML, Text diff --git a/lms/templates/instructor/instructor_dashboard_2/course_info.html b/lms/templates/instructor/instructor_dashboard_2/course_info.html index 357672bd22..d3cd9ba5d9 100644 --- a/lms/templates/instructor/instructor_dashboard_2/course_info.html +++ b/lms/templates/instructor/instructor_dashboard_2/course_info.html @@ -66,14 +66,17 @@ from openedx.core.djangolib.markup import HTML, Text
  • - ${ section_data['start_date'] } +
  • - ${ section_data['end_date'] } + % if course.end is None: + ${_("No end date set")} + % else: + + % endif
  • -
  • @@ -110,8 +113,8 @@ from openedx.core.djangolib.markup import HTML, Text )}

    %endif - + %if settings.FEATURES.get('ENABLE_INSTRUCTOR_BACKGROUND_TASKS'):
    diff --git a/lms/templates/instructor/instructor_dashboard_2/instructor_dashboard_2.html b/lms/templates/instructor/instructor_dashboard_2/instructor_dashboard_2.html index 4ee0efa67f..cda213d72d 100644 --- a/lms/templates/instructor/instructor_dashboard_2/instructor_dashboard_2.html +++ b/lms/templates/instructor/instructor_dashboard_2/instructor_dashboard_2.html @@ -126,3 +126,7 @@ from django.core.urlresolvers import reverse
    + +<%static:require_module_async module_name="js/dateutil_factory" class_name="DateUtilFactory"> + DateUtilFactory.transform(iterationKey=".localized-datetime"); +