From 9800abcbc26294046d4d914ac69154e7f673f9cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=96=87=E8=89=B3?= Date: Mon, 17 Aug 2026 12:31:06 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=88=E6=9C=AC=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dags/business/business/community/comm.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dags/business/business/community/comm.py b/dags/business/business/community/comm.py index 4713a8f..3a932e3 100644 --- a/dags/business/business/community/comm.py +++ b/dags/business/business/community/comm.py @@ -1,6 +1,13 @@ """ 同步小区基本信息至ES206 """ +import os +import time +# 强制设置 Python 进程内部本地时区为北京时间(CST / UTC+8),消除 Docker 容器内的 UTC 时区日志差异 +os.environ['TZ'] = 'Asia/Shanghai' +if hasattr(time, 'tzset'): + time.tzset() + import logging import pandas as pd import numpy as np