diff --git a/core/services/self_help/repositories.py b/core/services/self_help/repositories.py index 99c52a8..74f2e19 100644 --- a/core/services/self_help/repositories.py +++ b/core/services/self_help/repositories.py @@ -26,6 +26,8 @@ class ActionLogRepository(BaseService.Component): client: "InfluxDBClientAsync" query = ( 'import "date"' + 'import "timezone"' + 'option location = timezone.location(name: "Asia/Shanghai")' 'from(bucket: "{}")' "|> range(start: -180d)" '|> filter(fn: (r) => r["_measurement"] == "action_log")'