From d48e9166c4e8def42eb62cf37e020bb34c29ebc2 Mon Sep 17 00:00:00 2001 From: wuaho Date: Thu, 18 Nov 2021 15:51:48 +0800 Subject: [PATCH] 1 --- models/behavior_analysis.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/models/behavior_analysis.py b/models/behavior_analysis.py index 8a23fdf..666b93b 100644 --- a/models/behavior_analysis.py +++ b/models/behavior_analysis.py @@ -262,6 +262,9 @@ class BehaviorAnalysis: tbl = getattr(self, f'{item["tableType"]}_tbl') col = getattr(tbl.c, item['columnName']) + # 日期类型处理时区 + if item.get('data_type') == 'datetime': + col = func.addHours(col, self.zone_time) ftv = item['ftv'] if comparator == '==':