From 333cc78056aba3cc4316b5ff8b96f4e7822c7822 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 23 Aug 2023 13:48:15 +0100 Subject: [PATCH] Publication date format --- shares.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shares.py b/shares.py index b7d77998a..cb59f8cdd 100644 --- a/shares.py +++ b/shares.py @@ -2045,6 +2045,7 @@ def vf_proposal_from_share(shared_item: {}, om2_link = \ "http://www.ontology-of-units-of-measure.org/resource/om-2/" share_id = _vf_share_id(shared_item['shareId']) + published = date_seconds_to_string(shared_item['published']) offer_item = { "@context": [ "https://www.w3.org/ns/activitystreams", @@ -2071,7 +2072,7 @@ def vf_proposal_from_share(shared_item: {}, "attributedTo": shared_item['actor'], "name": shared_item['displayName'], "content": shared_item['summary'], - "published": shared_item['published'], + "published": published, "publishes": { "type": "Intent", "id": share_id + '#primary',