Skip to content

Time zone issue #1

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

Open
p7081911 opened this issue Nov 30, 2020 · 1 comment
Open

Time zone issue #1

p7081911 opened this issue Nov 30, 2020 · 1 comment

Comments

@p7081911
Copy link

Default
2020-11-30T03:27:53.686464Z
2020/11/30 03:27:53 Got message: {"timestamp":1606706095,"temperature":28.20,"humidity":91.10}

Hi,
Thanks for sharing your code. It has help me a lot
However it seems there is some timezone issue in the scraping.

I am in GMT +8 timezone.

At 2020-11-30T03:27:53.686464Z, it was in fact 2020/11/30 11:27:53, however the code is retrieving the pub/sub message at 2020/11/30 03:27:53.

I appreciate if you would guide me in overcoming this timezone issue.

Thanks

Rgds
Alvin

@leozz37
Copy link
Owner

leozz37 commented Nov 30, 2020

Hey @p7081911, thanks for contacting me!

Prometheus always keeps data in UTC timezone, since servers usually run on GMT and that is the common time for correlating things from monitoring, logs, etc.

However, you can use timezone-related settings in Grafana.

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