change second_diff to date_diff
fix date_diff