Closed beastoin closed 1 week ago
Entelligence.AI
This change updates the timestamp generation across various functions in multiple files, replacing datetime.utcnow()
with datetime.now(timezone.utc)
. This ensures accurate timezone handling and avoids appending a 'Z' postfix when using utcnow(). The update doesn't alter function signatures, external interfaces, or global data structures.
Files | Summary |
---|---|
backend/database/chat.py, backend/database/facts.py, backend/database/redis_db.py, backend/database/vector_db.py, backend/models/facts.py, backend/routers/chat.py, backend/routers/screenpipe.py, backend/routers/transcribe.py, backend/routers/users.py, backend/routers/workflow.py, backend/scripts/rag/current.py, backend/utils/memories/process_memory.py | Updated timestamp generation from datetime.utcnow() to datetime.now(timezone.utc) for proper timezone handling. No changes to function signatures, external interfaces, or global data structures. |
"In the realm of code where timezones collide, A change was made with much pride. From
utcnow()
we part, tonow(timezone.utc)
we ride, Ensuring timestamps worldwide abide. 🌍🕰️"
…dantic will not include post-fix Z with utcnow() func
Summary by Entelligence.AI
Refactor: Updated the timestamp generation across various functions to use
datetime.now(timezone.utc)
instead ofdatetime.utcnow()
. This change ensures that timestamps are generated with correct timezone information, improving the accuracy and consistency of time-related data throughout the application.