-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
timezone feature does not work as expected #515
Labels
bug
Something isn't working
Comments
the returned timestamp must be in RFC3339 format for the UTC offset to appear.
please have a try. |
same result, always UTC+0, and the example in this document is using timestamp, not rfc3339. > select * from cpu
name: cpu
+------------------------------+------+-----------+--------+---------+---------+
| time | disk | host | memory | network | region |
+------------------------------+------+-----------+--------+---------+---------+
| 2024-03-04T01:20:27.1574343Z | 10 | server-01 | 100 | 1243 | east-cn |
| 2024-03-04T01:20:48.8960361Z | 132 | server-01 | 214 | 513 | east-cn |
+------------------------------+------+-----------+--------+---------+---------+
6 columns, 2 rows in set
> select * from cpu tz('Asia/Shanghai')
name: cpu
+------------------------------+------+-----------+--------+---------+---------+
| time | disk | host | memory | network | region |
+------------------------------+------+-----------+--------+---------+---------+
| 2024-03-04T01:20:27.1574343Z | 10 | server-01 | 100 | 1243 | east-cn |
| 2024-03-04T01:20:48.8960361Z | 132 | server-01 | 214 | 513 | east-cn |
+------------------------------+------+-----------+--------+---------+---------+
6 columns, 2 rows in set
> select * from cpu tz('America/Chicago')
name: cpu
+------------------------------+------+-----------+--------+---------+---------+
| time | disk | host | memory | network | region |
+------------------------------+------+-----------+--------+---------+---------+
| 2024-03-04T01:20:27.1574343Z | 10 | server-01 | 100 | 1243 | east-cn |
| 2024-03-04T01:20:48.8960361Z | 132 | server-01 | 214 | 513 | east-cn |
+------------------------------+------+-----------+--------+---------+---------+
6 columns, 2 rows in set |
right, it's really a bug |
8 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug(Bug 描述)
I trie to use timezone 'Asia/Shanghai' and 'America/Chicago' but the returned timestamp are all the same.
To Reproduce(Bug 复现步骤)
Expected behavior(期望结果)
No response
Screenshots(屏幕截图)
No response
Logs(完整的错误日志)
No response
Additional context(其他的一些补充内容)
No response
The text was updated successfully, but these errors were encountered: