From c7d4df6400bd123658734f1ac52f1da447650ad2 Mon Sep 17 00:00:00 2001 From: Christopher Usher Date: Sat, 12 Oct 2019 02:23:10 +0100 Subject: [PATCH] horrible bug with negative times fixed --- common/common/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/common/__init__.py b/common/common/__init__.py index e961fc1..3d8edb8 100644 --- a/common/common/__init__.py +++ b/common/common/__init__.py @@ -27,7 +27,7 @@ def parse_bustime(bustime): see it for detail.""" if bustime.startswith('-'): # parse without the -, then negate it - return -parse_bustime(bustime[:1]) + return -parse_bustime(bustime[1:]) parts = bustime.strip().split(':') if len(parts) == 2: