Skip to content

Commit

Permalink
fix: check_tip_and_e datetime 객체비교문제 수정
Browse files Browse the repository at this point in the history
함수에서 사용하는 두 datetime 객체의 시간대를 KST로 변환하는 코드를 추가했습니다.
  • Loading branch information
Seokyoung-Hong committed Jun 5, 2024
1 parent f332bcd commit 11d68d0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sandol/api_server/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,10 @@ async def wrapper(*args, **kwargs):
tip = Restaurant.by_id("001")
registration_time = get_last_saved_date(file_path)

# 시간대 변환
tip.registration_time = tip.registration_time.astimezone(tz=KST)
registration_time = registration_time.astimezone(tz=KST)

if registration_time < last_wednesday:
must_download = True
else:
Expand Down

0 comments on commit 11d68d0

Please sign in to comment.