Skip to content
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

Broken time conversion in column type Date for PostgreSQL data source #11404

Closed
niku64 opened this issue Mar 27, 2018 · 1 comment
Closed

Broken time conversion in column type Date for PostgreSQL data source #11404

niku64 opened this issue Mar 27, 2018 · 1 comment

Comments

@niku64
Copy link

niku64 commented Mar 27, 2018

What Grafana version are you using?

grafana-5.0.3

What datasource are you using?

PostgreSQL

What OS are you running grafana on?

Gentoo

What did you do?

I have configured an SQL query with $__time(thing_created_at) which was translated to thing_created_at as time, then set a column type to Date in column styles.

What was the expected result?

In grafana-4.6.3 the resulting string in the time column was the same as to_char(thing_created_at, 'YYYY-MM-DD HH:mm:ss') as time.

What happened instead?

Time column shows 1970-01-18 hh:mm:ss instead of 2017-03-27 hh:mm:ss.

@marefr
Copy link
Member

marefr commented Mar 27, 2018

Should be fixed in #11306. Will be included in v5.1 release.

@marefr marefr closed this as completed Mar 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants