Update time_log.py

Hi Andrew,
I've been testing the issue with the timelog for the overlap hours and on my local one is working.
This is the code that I changed.