Publication date format

main
Bob Mottram 2023-08-23 13:48:15 +01:00
parent 8b56db72c0
commit 333cc78056
1 changed files with 2 additions and 1 deletions

View File

@ -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',