Fix "unsupported date format" when marshaling data from rest endpoint Fix "unsupported date format" when marshaling data from rest endpoint flask flask

Fix "unsupported date format" when marshaling data from rest endpoint


As you can see, you have "<built-in method now of type object at 0x10264d6e0>" instead of datetime object.

I suspect that somewhere in your code you forgot to type parenthesis () like this:

someobject.lastUpdate = datetime.now

But it should be

someobject.lastUpdate = datetime.now()