OCHA-DAP / hdx-python-api

Python API for interacting with the HDX Data Portal
http://data.humdata.org
MIT License
80 stars 16 forks source link

Fix for broken mark_data_updated #66

Closed mcarans closed 5 months ago

mcarans commented 5 months ago

mark_data_updated is broken due to an error in dataset_update_filestore_resource in which timezone information was incorrectly added to the iso formatted string due to the following erroneous change to replace deprecated utcnow() function

datetime.utcnow().isoformat(timespec="microseconds") '2024-04-25T22:42:58.501073' became: datetime.now(timezone.utc).isoformat(timespec="microseconds") '2024-04-25T22:43:10.746691+00:00'