Summary of What Needs to be Done
Replace usage of the deprecated datetime.utcnow() in src/utils/ui_enhancement.py with the timezone-aware datetime.now(timezone.utc).
Changes that Need to be Made
In src/utils/ui_enhancement.py:
- Add
timezone to the import: from datetime import datetime, timezone
- Replace
str(datetime.utcnow()) with datetime.now(timezone.utc).isoformat() in track_navigation_flow method
Impact that it Would Provide
- Fixes Python 3.12+ deprecation warning for
datetime.utcnow()
- Uses the recommended timezone-aware datetime approach
- Better timezone correctness for navigation tracking timestamps
Note: Please assign this issue to the tmdeveloper007 account.
Summary of What Needs to be Done
Replace usage of the deprecated
datetime.utcnow()insrc/utils/ui_enhancement.pywith the timezone-awaredatetime.now(timezone.utc).Changes that Need to be Made
In
src/utils/ui_enhancement.py:timezoneto the import:from datetime import datetime, timezonestr(datetime.utcnow())withdatetime.now(timezone.utc).isoformat()intrack_navigation_flowmethodImpact that it Would Provide
datetime.utcnow()Note: Please assign this issue to the
tmdeveloper007account.