From 047f75d35c90371f76c32aec92dc27fd7133ccf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=93=E6=BE=AA?= <52116367+z-mio@users.noreply.github.com> Date: Mon, 3 Jun 2024 18:55:01 +0800 Subject: [PATCH] =?UTF-8?q?Fix:=20=E7=A7=BB=E9=99=A4=E6=97=B6=E5=8C=BA?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bot.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/bot.py b/bot.py index a628e74..8a19a52 100644 --- a/bot.py +++ b/bot.py @@ -1,8 +1,5 @@ # -*- coding: UTF-8 -*- import asyncio -import os -import platform -import time import httpx import pyrogram @@ -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()