From c264d4d02405a0b7faa068ba87f26c100a223779 Mon Sep 17 00:00:00 2001 From: Paul Brown Date: Fri, 4 Oct 2013 18:52:17 -0500 Subject: [PATCH] TypeError: isoformat() takes no arguments (1 given) I was getting the following error because of that line: TypeError: isoformat() takes no arguments (1 given) --- sharepoint/lists/types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sharepoint/lists/types.py b/sharepoint/lists/types.py index 7164cba..8e9ad26 100644 --- a/sharepoint/lists/types.py +++ b/sharepoint/lists/types.py @@ -288,7 +288,7 @@ class DateTimeField(Field): def _parse(self, value): return datetime.datetime.strptime(value, '%Y-%m-%d %H:%M:%S') def _unparse(self, value): - return value.isoformat(' ') + return value.isoformat() def _as_xml(self, row, value, **kwargs): return OUT('dateTime', value.isoformat())