Olen / home-assistant-openplantbook

Integration to search and fetch data from Openplantbook.io
GNU General Public License v3.0
131 stars 5 forks source link

Inconsistent timestamp format #26

Closed slaxor505 closed 3 weeks ago

slaxor505 commented 1 month ago

Integration generates JTS document with inconsistent ISO8601 timestamps and breaks upload process.

Unknown JTS parsing exception: time data "2024-08-11T12:17:59+05:00" doesn't match format "%Y-%m-%dT%H:%M:%S.%f%z", at position 2157. You might want to try:
2024-08-12T05:38:04.744246000Z     - passing `format` if your strings have a consistent format;
2024-08-12T05:38:04.744337000Z     - passing `format='ISO8601'` if your strings are all ISO8601 but not necessarily in exactly the same format;
2024-08-12T05:38:04.744405000Z     - passing `format='mixed'`, and the format will be inferred for each element individually. You might want to use `dayfirst` alongside this.

Will be fixed in next beta. Work in progress.

slaxor505 commented 3 weeks ago

This has been fixed on server side.