summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2011-11-19 06:27:42 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2011-11-19 06:27:42 (GMT)
commitcfcf5691490c76ccec14e9bb4ed154c8b0dfbbb1 (patch)
treeddf74deccb5de290322b309420b7a72fd553fb25
parent0437d3fecad93b20974a7884b73e41222902b060 (diff)
downloadtabellio.pcfdb-cfcf5691490c76ccec14e9bb4ed154c8b0dfbbb1.zip
tabellio.pcfdb-cfcf5691490c76ccec14e9bb4ed154c8b0dfbbb1.tar.gz
tabellio.pcfdb-cfcf5691490c76ccec14e9bb4ed154c8b0dfbbb1.tar.bz2
fix conversion of publication time to DateTime
-rw-r--r--tabellio/pcfdb/sync.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tabellio/pcfdb/sync.py b/tabellio/pcfdb/sync.py
index 4e3c057..de27aa4 100644
--- a/tabellio/pcfdb/sync.py
+++ b/tabellio/pcfdb/sync.py
@@ -772,10 +772,10 @@ class SyncFromPcfDbView(BrowserView):
object.topics = topics
if textdefts:
object.final_version = True
- object.publication_date = DateTime(textdefts.date.isoformat())
+ object.publication_date = DateTime(textdefts.isoformat())
elif textprovts:
object.final_version = False
- object.publication_date = DateTime(textprovts.date.isoformat())
+ object.publication_date = DateTime(textprovts.isoformat())
if authors:
authors = [self.get_author_intid(x) for x in authors]
object.authors = [RelationValue(x) for x in authors if x]