Strip meaningless seconds in time calculation fix #156