Fixed bug introduced in rcsdiff_date_reformat by previous commit which

was noticed by Greg Stein <gstein@lyra.org>.

* 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
remotes/tags/1.0.0-rc1
rey4 2003-08-22 21:56:31 +00:00
parent 844a8c1269
commit f6b2ba3649
1 changed files with 2 additions and 1 deletions

View File

@ -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]+).*@@(.*)')