Fix for problem with the starting point of the time substring

I'm not a python expert, but this fixed a bug for me, so maybe you can check it out? Thanks!