Improve string formatting v5 (#33697)

* Improve string formatting v5

* Address review comments
This commit is contained in:
springstan authored and GitHub committed 2020-04-05 17:48:55 +02:00
1 parent 39336d3ea3
commit fca90a8ddc
46 files changed
+221 -252

No files matched your search

@@ -92,7 +92,7 @@ def calculate_offset(event, offset):
time = search.group(1)
if ":" not in time:
if time[0] == "+" or time[0] == "-":
time = "{}0:{}".format(time[0], time[1:])
time = f"{time[0]}0:{time[1:]}"
else:
time = f"0:{time}"