# HG changeset patch # User Marcin Kuzminski # Date 2019-05-21 11:29:00 # Node ID 5bf6d1570ea1b5f6ec2448b192d5df58048eaa45 # Parent 4122317029483d075db294f74f6871f7cd3c49c4 helpers: do not include microseconds in parsing diff --git a/rhodecode/lib/vcs/utils/helpers.py b/rhodecode/lib/vcs/utils/helpers.py --- a/rhodecode/lib/vcs/utils/helpers.py +++ b/rhodecode/lib/vcs/utils/helpers.py @@ -107,7 +107,8 @@ def parse_datetime(text): if isinstance(text, datetime.datetime): return text - text = text.strip().lower() + # we limit a format to no include microseconds e.g 2017-10-17t17:48:23.XXXX + text = text.strip().lower()[:19] input_formats = ( '%Y-%m-%d %H:%M:%S',