culturecreates / footlight-aggregator

A tool to inject entities from Artsdata to footlight
0 stars 0 forks source link

Aggregator End Date bug #1

Closed saumier closed 1 year ago

saumier commented 1 year ago

End date is loaded with one day extra. End date from Artsdata is 2023-03-24 but is displayed in Old CMS and New CMS as 2023-03-25.

http://api.artsdata.ca/query?adid=K23-25&sparql=query_adid&frame=event_footlight&format=json&source=http://kg.artsdata.ca/culture-creates/footlight/toutculture-ca "endDate": "2023-03-24"

http://staging.oldcms.footlight.io/admin/add-event/?id=6418bbabc2ba9b006977a155 "endDate": "2023-03-25"

Screen Shot 2023-03-20 at 4 29 57 PM
SuhailAliyar commented 1 year ago

The issue was in the footlight admin api, the date formatting in listing events and event details API wasn't considering the scheduled timezone.