aboutsummaryrefslogtreecommitdiff
path: root/src/lib/data.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2017-06-13 21:33:38 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2017-06-13 21:33:38 +0200
commitb7eef1e612b6777860ec05725336e5ed5d228480 (patch)
treec55dd8cf664470ba4c92bfd8e8801de3f790ce92 /src/lib/data.py
parentflask.jsonify now supports directly lists (diff)
downloadnewspipe-b7eef1e612b6777860ec05725336e5ed5d228480.tar.gz
newspipe-b7eef1e612b6777860ec05725336e5ed5d228480.tar.bz2
newspipe-b7eef1e612b6777860ec05725336e5ed5d228480.zip
Pinboard excpects an ISO 8601 time format.
Diffstat (limited to 'src/lib/data.py')
-rw-r--r--src/lib/data.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/data.py b/src/lib/data.py
index 9b037b90..483c7100 100644
--- a/src/lib/data.py
+++ b/src/lib/data.py
@@ -204,7 +204,7 @@ def export_bookmarks(user):
'title': bookmark.title,
'shared': 'yes' if bookmark.shared else 'false',
'toread': 'yes' if bookmark.to_read else 'false',
- 'time': bookmark.time,
+ 'time': bookmark.time.isoformat(),
'tags': ' '.join(bookmark.tags_proxy)
})
return jsonify(export)
bgstack15