Refactor. Set record date and time to current date and time by default on form submission if those fields are empty (with the user's time zone taken into account).