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

Fix unmarshal of negative times #193

Merged
merged 1 commit into from
May 16, 2019

Conversation

jacksontj
Copy link
Contributor

While adding tests in prometheus/client_golang#570 I noticed that this model.Time doesn't properly unmarshal negative times.

@brian-brazil
Copy link
Contributor

Could you add a unittest for this?

Signed-off-by: Thomas Jackson <jacksontj.89@gmail.com>
@jacksontj
Copy link
Contributor Author

There weren't any tests for time marshal/Unmarshal, so I added a couple.

@brian-brazil brian-brazil merged commit 17f5ca1 into prometheus:master May 16, 2019
@brian-brazil
Copy link
Contributor

Thanks!

@jacksontj jacksontj deleted the negative_time_unmarshal branch May 17, 2019 03:13
alanprot pushed a commit to alanprot/common that referenced this pull request Mar 15, 2023
…_overridable

Log X-Forwarded-For (or similar) for every request
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

Successfully merging this pull request may close these issues.

None yet

2 participants