datetime.utcnow() → datetime.now(UTC) 전환 #26
Labels
No labels
api
bug
chore
collector
decision-needed
docs
enhancement
feature
feedback-loop
frontend
infra
skill
test
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
xhh/financial-data-platform#26
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Python 3.12+ 에서
datetime.utcnow()가 deprecated. CI 실행 로그에 관련 DeprecationWarning 이 다수 출력됨. 기능엔 영향 없으나 언젠가 제거될 예정이므로 선제 대응.교체 대상
현재 확인된 위치:
src/financial_platform/api/routers/watchlist.py(2곳: PATCH, DELETE 의 updated_at)src/financial_platform/api/routers/reports.py(1곳: PATCH 의 updated_at)src/financial_platform/storage/models.py의default=datetime.utcnow(여러 테이블) — 이건 ORM default 라 교체 시 마이그레이션 영향 검토 필요scripts/collect_insider.py등 수집 스크립트 (로그 타임스탬프)권장 교체
주의: tz-naive → tz-aware 로 바뀌면 SQLAlchemy
DateTime컬럼과 직렬화 동작이 바뀔 수 있음.DateTime(timezone=True)로 컬럼 변경이 수반되는지 별도 결정.범위 옵션
1차는 A 수준으로 처리 권고. B 는 별도 이슈로 쪼갤 수 있음.