KST가 정확하게 반영되지 않는 부분 수정.

This commit is contained in:
2025-07-11 09:25:33 +09:00
parent 27fcea070a
commit 77d209d6fc

View File

@ -1,4 +1,21 @@
# config.py
import os
import time
from dotenv import load_dotenv
# 환경 변수 로드
load_dotenv()
if not os.path.exists('.env'):
print("[WARN] .env 파일이 존재하지 않습니다. 기본값으로 실행됩니다.")
# 시간대 설정
TZ = os.getenv("TZ", "Asia/Seoul")
os.environ["TZ"] = TZ
try:
time.tzset()
except AttributeError:
pass
def parse_bool(value):
if isinstance(value, bool):