From f6b2ba364938be55df369fb6b2b648085863b4d3 Mon Sep 17 00:00:00 2001 From: rey4 Date: Fri, 22 Aug 2003 21:56:31 +0000 Subject: [PATCH] Fixed bug introduced in rcsdiff_date_reformat by previous commit which was noticed by Greg Stein . * lib/viewcvs.py (rcs_date_reformat): restored call to make_time_string() git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@703 8cb11bc2-c004-0410-86c3-e597b4017df7 --- lib/viewcvs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/viewcvs.py b/lib/viewcvs.py index c7168611..7d0876c4 100644 --- a/lib/viewcvs.py +++ b/lib/viewcvs.py @@ -2434,9 +2434,10 @@ def view_doc(request): def rcsdiff_date_reformat(date_str): try: - return compat.cvs_strptime(date_str) + date = compat.cvs_strptime(date_str) except ValueError: return date_str + return make_time_string(compat.timegm(date)) _re_extract_rev = re.compile(r'^[-+]+ [^\t]+\t([^\t]+)\t((\d+\.)*\d+)$') _re_extract_info = re.compile(r'@@ \-([0-9]+).*\+([0-9]+).*@@(.*)')