# HG changeset patch # User Marcin Kuzminski # Date 2017-01-24 10:26:15 # Node ID 8875ec9d751f677a4311a27bee3b8773a26da25a # Parent 4785c1eeceba2971507060407423ffa3667298e1 svn: date-parser should use UTC dates to be consistent with other backends. diff --git a/rhodecode/lib/vcs/backends/svn/commit.py b/rhodecode/lib/vcs/backends/svn/commit.py --- a/rhodecode/lib/vcs/backends/svn/commit.py +++ b/rhodecode/lib/vcs/backends/svn/commit.py @@ -229,6 +229,8 @@ def _date_from_svn_properties(properties :return: :class:`datetime.datetime` instance. The object is naive. """ + aware_date = dateutil.parser.parse(properties.get('svn:date')) - local_date = aware_date.astimezone(dateutil.tz.tzlocal()) - return local_date.replace(tzinfo=None) + # final_date = aware_date.astimezone(dateutil.tz.tzlocal()) + final_date = aware_date + return final_date.replace(tzinfo=None) diff --git a/rhodecode/tests/functional/test_changeset.py b/rhodecode/tests/functional/test_changeset.py --- a/rhodecode/tests/functional/test_changeset.py +++ b/rhodecode/tests/functional/test_changeset.py @@ -288,7 +288,6 @@ Added a symlink 'Hide comments']: response.mustcontain(elem) - def _check_new_diff_menus(self, response, right_menu=False,): # diff menus for elem in ['Show file before', 'Show file after',