Prepend leading zeros#7663
Conversation
|
@gleeper I cannot find specifics about this in the RFM specification. I took time to compare it to the implementation in Go, This seems to match our existing behavior. |
|
I made a fix for prepending zeros, not appending zeros. |
|
Sorry for the confusion @gleeper and maybe I could have been clearer. From what I could tell our behavior properly matched how things were happening in other languages. I think I understand now the issue. We have have handling on the parsing side to shift incoming values. So when you provide One of your tests (the one removing trailing but adding leading) threw me a bit and sort of made me wonder what you were trying to do :) |
|
@gleeper thanks for the contribution to the project. Your change has been merged and will ship in the next release. |
|
@crwilcox Happy to help! Do you have an estimate as to when the next release will be? |
rfc3339with nanoseconds wasn't prepending leading zeros so if an object had less than 100,000,000 nanoseconds, the nanoseconds string field would be incorrectly set.