Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Fixed #6486 -- Added local server time to the debug output page. Patc…

…h from

Bastian Kleineidam and Thomas Güttler.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent f8578d7 commit c01e6b852ab652e9ba3f7d3ac43cd5d20802a215 @malcolmt malcolmt committed
Showing with 6 additions and 0 deletions.
  1. +6 −0 django/views/
6 django/views/
@@ -1,6 +1,7 @@
import os
import re
import sys
+import datetime
from django.conf import settings
from django.template import Template, Context, TemplateDoesNotExist
@@ -158,6 +159,7 @@ def get_traceback_html(request, exc_type, exc_value, tb):
'settings': get_safe_settings(),
'sys_executable': sys.executable,
'sys_version_info': '%d.%d.%d' % sys.version_info[0:3],
+ 'server_time':,
'django_version_info': get_version(),
'sys_path' : sys.path,
'template_info': template_info,
@@ -389,6 +391,10 @@ def _get_lines_from_file(filename, lineno, context_lines, loader=None, module_na
<th>Python Path:</th>
<td>{{ sys_path }}</td>
+ <tr>
+ <th>Server time:</th>
+ <td>{{server_time|date:"r"}}</td>
+ </tr>
{% if unicode_hint %}

0 comments on commit c01e6b8

Please sign in to comment.
Something went wrong with that request. Please try again.