From 3a6dd5a73176e125e754fe8246a708ba09192498 Mon Sep 17 00:00:00 2001 From: tsukumi Date: Fri, 22 Sep 2023 14:59:12 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20[Server]=20time.tzset()=20=E9=96=A2?= =?UTF-8?q?=E6=95=B0=E3=81=8C=E5=AD=98=E5=9C=A8=E3=81=97=E3=81=AA=E3=81=84?= =?UTF-8?q?=E7=92=B0=E5=A2=83=E3=82=92=E8=80=83=E6=85=AE=20=E3=82=B5?= =?UTF-8?q?=E3=83=BC=E3=83=89=E3=83=91=E3=83=BC=E3=83=86=E3=82=A3=E3=83=BC?= =?UTF-8?q?=E3=83=A9=E3=82=A4=E3=83=96=E3=83=A9=E3=83=AA=E5=90=8C=E6=A2=B1?= =?UTF-8?q?=E3=81=AE=20arm64=20=E5=90=91=E3=81=91=20Python=20=E3=81=A7?= =?UTF-8?q?=E5=86=8D=E7=8F=BE=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/KonomiTV.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server/KonomiTV.py b/server/KonomiTV.py index f7cd4ec4..b90cab21 100644 --- a/server/KonomiTV.py +++ b/server/KonomiTV.py @@ -8,7 +8,11 @@ import time if sys.platform != 'win32': os.environ['TZ'] = 'Asia/Tokyo' - time.tzset() + # Linux でもなぜか time.tzset() が使えないことがあるので、try-except で囲む + try: + time.tzset() + except AttributeError: + pass import atexit import platform