microbiomedata / nmdc-runtime

Runtime system for NMDC data management and orchestration
https://microbiomedata.github.io/nmdc-runtime/
Other
7 stars 3 forks source link

Replace deprecated `utcnow()` calls with `now(timezone.utc)` #788

Closed shreddd closed 15 hours ago

shreddd commented 4 days ago

Fix to address deprecated datetime.utcnow() calls

eecavanna commented 4 days ago

I confirmed that, even in the Python 3.10 docs, this replacement is "recommended."

image

The reason I checked that version of the Python docs is that that is the Python version that is running in the container image that runs the FastAPI app, according to its Dockerfile.

eecavanna commented 2 days ago

I'm comfortable with this branch being merged into main as is.