influxdata/influxdb-php

The problem of time zone conversion

kanon7 opened this issue · 0 comments

When I use PHPClient access inflxudb database server,the time of obtained data isn't in accordance with local time zone.
Because My time zone is East eight area,the default time of the inflxudb database is stored in UTC.
So how can I obtain the time of data that's in accordance with East eight area by PHPclient,or how can i use the function like:tz('Asia/Shanghai') by PHPClient。
Thank you in advance.

This is the code:
`$result = $database->getQueryBuilder()
->select('B06G_B57AC_SDD_PV,E07G_E5ASR_VOTD_PV')
->from('dcs')
->where(["time>'2018-05-30T08:40:00Z'"])
->limit(5)
->getResultSet()
->getPoints();

var_dump($result); `