remove work in progress regarding convert datetime to localtime

This commit is contained in:
Chris Dodge
2012-10-17 10:34:23 -04:00
parent 170694e580
commit 5964ecc70c
2 changed files with 2 additions and 3 deletions

View File

@@ -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")

View File

@@ -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)