Commit b1ee96b3 by cahrens

Format timestamp.

parent 055538e2
<%! <%!
from xmodule.util.date_utils import get_time_struct_display from xmodule.util.date_utils import get_default_time_display
%> %>
<div class="folditbasic"> <div class="folditbasic">
<p><strong>Due:</strong> ${due} <p><strong>Due:</strong> ${get_default_time_display(due)}
<p> <p>
<strong>Status:</strong> <strong>Status:</strong>
...@@ -23,7 +23,7 @@ from xmodule.util.date_utils import get_time_struct_display ...@@ -23,7 +23,7 @@ from xmodule.util.date_utils import get_time_struct_display
% for puzzle in completed: % for puzzle in completed:
<tr> <tr>
<td>${'{0}-{1}'.format(puzzle['set'], puzzle['subset'])}</td> <td>${'{0}-{1}'.format(puzzle['set'], puzzle['subset'])}</td>
<td>${get_time_struct_display(puzzle['created'], '%Y-%m-%d %H:%M')}</td> <td>${puzzle['created'].strftime('%Y-%m-%d %H:%M')}</td>
</tr> </tr>
% endfor % endfor
</table> </table>
......
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