svn: date-parser should use UTC dates to be consistent with other backends.

This commit is contained in:
Marcin Kuzminski 2017-01-24 11:26:15 +01:00
parent 3c07176dde
commit 3ef31a1cc1
2 changed files with 4 additions and 3 deletions

View file

@ -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)

View file

@ -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',