From c01e6b852ab652e9ba3f7d3ac43cd5d20802a215 Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Thu, 20 Mar 2008 07:01:26 +0000 Subject: [PATCH] =?UTF-8?q?Fixed=20#6486=20--=20Added=20local=20server=20t?= =?UTF-8?q?ime=20to=20the=20debug=20output=20page.=20Patch=20from=20Bastia?= =?UTF-8?q?n=20Kleineidam=20and=20Thomas=20G=C3=BCttler.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://code.djangoproject.com/svn/django/trunk@7333 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/views/debug.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/django/views/debug.py b/django/views/debug.py index ea16f6972a..a118ac3126 100644 --- a/django/views/debug.py +++ b/django/views/debug.py @@ -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': datetime.datetime.now(), 'django_version_info': get_version(), 'sys_path' : sys.path, 'template_info': template_info, @@ -389,6 +391,10 @@ TECHNICAL_500_TEMPLATE = """ Python Path: {{ sys_path }} + + Server time: + {{server_time|date:"r"}} + {% if unicode_hint %}