yeah, I suppose.  But this setting is in the default settings file when you manage.py startproject, and it’s in common.py for lms and cms

https://github.com/edx/edx-platform/blob/master/lms/envs/common.py#L493
https://github.com/edx/edx-platform/blob/master/cms/envs/common.py#L239

so unless someone went actively to delete it, they’ll have it.

On Jan 23, 2014, at 10:54 AM, Sef Kloninger <notifications@github.com> wrote:

> In lms/templates/courseware/progress.html:
> 
> > @@ -71,7 +75,7 @@
> >  
> >                  %if section.get('due') is not None:
> >                    <%
> > -                      formatted_string = get_time_display(section['due'], course.due_date_display_format)
> > +                      formatted_string = get_time_display(section['due'], course.due_date_display_format, coerce_tz=settings.TIME_ZONE)
> for backward compatibility wouldn't it be better to do:
> 
> sitewide_tz = getattr(settings, 'TIME_ZONE', None)
> formatted_string = get_time_display(section['due'], course.due_date_display_format, coerce_tz=settings.TIME_ZONE)
> This avoids a KeyError on instances where this is not set, ie. existing dev environments, or other people's prod.
> 
> —
> Reply to this email directly or view it on GitHub.
>