issues
search
carpedm20
/
korail2
Korail (www.letskorail.com) wrapper for Python.
http://carpedm20.github.io/korail2/
Other
168
stars
54
forks
source link
hotfix: 코레일에 일정 찾기 API 요청보낼때 파라미터 값 수정(txtGoHour)
#32
Closed
whi8ram
closed
2 years ago
whi8ram
commented
2 years ago
한국시간대가 아닌 서버에서 datetime.now()를 하면 해당 서버의 시간대가 나옵니다. 이로 인해서 한국시간대의 티켓 정보를 제대로 요청할 수 없어서 서버 timezone에 해당하는 시간을 utc 기준으로 변경한뒤 다시 한국시간대로 변경했습니다. (테스트 성공)
버그 파악 방법은 다른 timezone 서버에서 search_train 메소드를 실행시켜서 return 값을 보면 알 수 있습니다.
sng2c
commented
2 years ago
네 내용 확인했습니다. 기여에 감사드립니다.