bug 1137: Fix typo in check_date_difference