fix timelog graph which passes midnight