Timestamp record before saving it