Date and time fix for validation