Commit 2631452b by cahrens

Add display_timezone so course authors can choose not to display timezones in LMS.

parent e4dac6e3
......@@ -12,7 +12,7 @@ def get_default_time_display(time_struct, display_timezone=True):
If None is passed in for time_struct, an empty string will be returned.
The default value of display_timezone is True.
"""
timezone = " UTC" if display_timezone else ""
timezone = "" if time_struct is None or not display_timezone else " UTC"
return get_time_struct_display(time_struct, "%b %d, %Y at %H:%M") + timezone
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment