Hey all! I am facing this issue while using strptime. But as i can see in my code i am unable to find what i am doing wrong kindly please help with these 3 lines. error is generated from "new_date"
new_date_time = str(day_dict[0].date) + ' ' + hour
new_date = datetime.strptime(new_date_time, '%Y-%m-%d %H:%M:%S')
self.create_inverse_attendance(day_dict[0].employee_id, action, new_date)