Closed
Description
Steps to reproduce:
- set timezone as seen in:
feat: add possibility to specify defaulttimezone
for datetimes withouttzinfo
#238 - query something similar as below
- returned tables have None as start/stop/time fields
date_utils.date_helper = DateHelper(timezone=tzlocal())
with InfluxDBClient(url=URL, token=TOKEN, org=ORG, timeout=25_000) as client:
query= f'''import "date"
from(bucket: "{BUCKET}")
|> range(start: date.truncate(t: now(), unit: 1d), stop: now())
|> filter(fn: (r) => r._measurement == "Duiktank")
|> aggregateWindow(every: 1h, fn: sum)
'''
tables = client.query_api().query(query, org=ORG)
Expected behavior:
Query returns localized time/start/stop
Actual behavior:
Query returns None time/start/stop
Specifications:
- Client Version: 1.29.1
- InfluxDB Version:
- Platform: Windows