TypeError: fromisoformat: argument must be string

Hello guys
Please any great ones…I need help to solve this error of mine.

Post the full stack trace of the error, and the line of code with some context where it last left your code (before the stack trace moved to the datetime). Also show us how you imported datetime.

I looks like its an error in the to_python for the now field, thats the part where it takes the field from the POST, and converts it to a python type. Its expecting a string, but its a type that is not a string. Maybe its getting an epoc count offset. print type(request.POST['now']) to see what type its getting.

Also, please don’t post images of code here. Copy/paste the text of the code into the body of your message. Surround the code between lines of three backtick - ` characters. This means you’ll have a line of ```, then your code, then another line of ```. (This forces the forum software to keep your code properly formatted - critical with Python.)