KST가 정확하게 반영되지 않는 부분 수정.
This commit is contained in:
@ -1,4 +1,21 @@
|
|||||||
|
# config.py
|
||||||
import os
|
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):
|
def parse_bool(value):
|
||||||
if isinstance(value, bool):
|
if isinstance(value, bool):
|
||||||
|
|||||||
Reference in New Issue
Block a user