fixed timestamp validation for api