Skip to content

Conversation

@pawl
Copy link

@pawl pawl commented Oct 4, 2013

I was getting the following error because of that line:
TypeError: isoformat() takes no arguments (1 given)

I was getting the following error because of that line:
TypeError: isoformat() takes no arguments (1 given)
@pawl
Copy link
Author

pawl commented Oct 7, 2013

Using datetime worked, I converted my date object to datetime using: datetime.datetime.combine(, datetime.time(0))

Yeah, it should probably be cleverer and handle date objects.

Would line 282 in types.py look like this?:

def _unparse(self, value):
    if value is datetime.date:
        return value.isoformat()
    if value is datetime.date:
        return value.isoformat(' ')
    else:
        return value.isoformat(' ') # or maybe an error message?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants