summaryrefslogtreecommitdiffstats
path: root/tabellio/pcfdb/sync.py
diff options
context:
space:
mode:
Diffstat (limited to 'tabellio/pcfdb/sync.py')
-rw-r--r--tabellio/pcfdb/sync.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tabellio/pcfdb/sync.py b/tabellio/pcfdb/sync.py
index 832572a..92bcaab 100644
--- a/tabellio/pcfdb/sync.py
+++ b/tabellio/pcfdb/sync.py
@@ -4,6 +4,8 @@ import datetime
import re
import time
+from DateTime.DateTime import DateTime
+
from zope.i18n.locales import locales
from Products.CMFCore.WorkflowCore import WorkflowException
@@ -766,10 +768,10 @@ class SyncFromPcfDbView(BrowserView):
object.topics = topics
if textdefts:
object.final_version = True
- object.publication_date = textdefts
+ object.publication_date = DateTime(textdefts.date.isoformat())
elif textprovts:
object.final_version = False
- object.publication_date = textprovts
+ object.publication_date = DateTime(textprovts.date.isoformat())
if authors:
authors = [self.get_author_intid(x) for x in authors]
object.authors = [RelationValue(x) for x in authors if x]