Fix for problem with the starting point of the time substring