Skip to content

Fix unmarshal of negative times#193

Merged
brian-brazil merged 1 commit intoprometheus:masterfrom
jacksontj:negative_time_unmarshal
May 16, 2019
Merged

Fix unmarshal of negative times#193
brian-brazil merged 1 commit intoprometheus:masterfrom
jacksontj:negative_time_unmarshal

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.

@jacksontj jacksontj force-pushed the negative_time_unmarshal branch 2 times, most recently from a663b5f to c2588c8 Compare May 16, 2019 15:25
@brian-brazil
Copy link
Contributor

Could you add a unittest for this?

Signed-off-by: Thomas Jackson <jacksontj.89@gmail.com>
@jacksontj jacksontj force-pushed the negative_time_unmarshal branch from c2588c8 to 3e87181 Compare May 16, 2019 15:46
@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.

2 participants