Skip to content

Commit

Permalink
Fix: 移除时区设置
Browse files Browse the repository at this point in the history
  • Loading branch information
z-mio committed Jun 3, 2024
1 parent e188b12 commit 047f75d
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions bot.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
# -*- coding: UTF-8 -*-
import asyncio
import os
import platform
import time

import httpx
import pyrogram
Expand All @@ -17,11 +14,6 @@
from config.config import bot_cfg, plb_cfg
from tools.filters import is_admin

# 如果当前操作系统不是 Windows,则设置环境变量 TZ 为 'Asia/Shanghai'
if platform.system() != "Windows":
os.environ["TZ"] = "Asia/Shanghai"
time.tzset()

logger.add("logs/bot.log", rotation="5 MB")

scheduler = AsyncIOScheduler()
Expand Down

0 comments on commit 047f75d

Please sign in to comment.