minor fix in time_diff