Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

The problem of time zone conversion #104

Open
kanon7 opened this issue May 31, 2018 · 0 comments
Open

The problem of time zone conversion #104

kanon7 opened this issue May 31, 2018 · 0 comments

Comments

@kanon7
Copy link

kanon7 commented May 31, 2018

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); `
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant