@TOC
SELECT * FROM "number_test" WHERE time > now() - 20s tz('Asia/Shanghai')
InfluxData APl responded with status code=BadRequest,response=("error":" error parsing query: unable to find time zoneAsia/Shanghai"]
influxdb在non-unix系统(例如windows)上不正常使用tz()语句,原因是influxdb底层是使用的go语言,go语言在windows操作系统上不能正确获得本地时区数据库(The time zone database needed by LoadLocation may not be present on all systems,especially non-Unix systems),要解决这个BUG的唯一方法是—>install go。
在后端自己处理时区问题吧~