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

Metrics OStream exporter prints time into local time zone #1345

Closed
ThomsonTan opened this issue Apr 22, 2022 · 0 comments · Fixed by #1346
Closed

Metrics OStream exporter prints time into local time zone #1345

ThomsonTan opened this issue Apr 22, 2022 · 0 comments · Fixed by #1346
Assignees
Labels
bug Something isn't working

Comments

@ThomsonTan
Copy link
Contributor

The OStream metrics exporter prints time to string based on local time zone, which fails tests like OStreamMetricsExporter.ExportDropPointData with below message.

391: With diff:
391: @@ -3,6 +3,6 @@
391:    schema url\t:
391:    version\t: 1.2.0
391: -  start time\t: Wed Dec 31 16:00:00 1969
391: -  end time\t: Wed Dec 31 16:00:00 1969
391: +  start time\t: Thu Jan  1 00:00:00 1970
391: +  end time\t: Thu Jan  1 00:00:00 1970
391:    description\t: description
391:    unit\t\t: unit
391:

Steps to reproduce
Run test OStreamMetricsExporter.ExportDropPointData on a machine not in UTC timezone.

What is the expected behavior?
The test should pass.

What is the actual behavior?
The test failed with above output log.

Additional context
Add any other context about the problem here.

@ThomsonTan ThomsonTan added the bug Something isn't working label Apr 22, 2022
@ThomsonTan ThomsonTan self-assigned this Apr 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant