Commit 5964ecc7 by Chris Dodge

remove work in progress regarding convert datetime to localtime

parent 170694e5
......@@ -76,6 +76,5 @@ def compute_unit_state(unit):
return UnitState.public
def get_date_display(date, convertToLocalTime=False):
print date.__class__.__name__
def get_date_display(date):
return date.strftime("%d %B, %Y at %I:%M %p")
......@@ -872,7 +872,7 @@ def asset_index(request, org, course, name):
id = asset['_id']
display_info = {}
display_info['displayname'] = asset['displayname']
display_info['uploadDate'] = get_date_display(asset['uploadDate'], True)
display_info['uploadDate'] = get_date_display(asset['uploadDate'])
asset_location = StaticContent.compute_location(id['org'], id['course'], id['name'])
display_info['url'] = StaticContent.get_url_path_from_location(asset_location)
......
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