From 39faa3322cf707ee5d1908b764d0f39a00a4dcfe Mon Sep 17 00:00:00 2001 From: wuaho Date: Thu, 18 Nov 2021 15:53:30 +0800 Subject: [PATCH] 1 --- models/user_analysis.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/models/user_analysis.py b/models/user_analysis.py index 107f138..ccd2532 100644 --- a/models/user_analysis.py +++ b/models/user_analysis.py @@ -139,6 +139,8 @@ class UserAnalysis: where = user_filter col = sa.Column(item['columnName']) + if item.get('data_type') == 'datetime': + col = func.addHours(col, self.zone_time) comparator = item['comparator'] ftv = item['ftv']