GreenDelta / olca-schema

Other
16 stars 8 forks source link

Schema 'last_change' breaks ipc 'put' method #10

Open davide-fiorito opened 3 weeks ago

davide-fiorito commented 3 weeks ago

The time format generated by datetime.datetime.now(datetime.UTC).isoformat()+'Z' leads to an error in the jsonld.Json package: 19:20:52 ERROR org.openlca.jsonld.Json failed to parse date / time: 2024-10-25T17:10:42.085894+00:00Z when performing any put command from olca-ipc.

msrocka commented 2 weeks ago

Thank you for reporting this issue. I tried to fix this with olca-schema 2.2.2, could you check?

davide-fiorito commented 2 weeks ago

Thank you for reporting this issue. I tried to fix this with olca-schema 2.2.2, could you check?

I'll try in the following days, as now I'm about to push into production, so I can't test right now. For the moment, I circumvented the issue by setting last_change='' when creating a new flow or process.