Skip to content

time: support fractional timezone minutes in MarshalBinary #40293

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

Closed
wants to merge 1 commit into from

Conversation

howjmay
Copy link
Contributor

@howjmay howjmay commented Jul 19, 2020

If the time is in 'LMT' and has fractional minute, then
MarshalBinary() and UnmarshalBinary() will encode/decode the time
in timeBinaryVersionV2 in which the fractional minute is at
bit 15 and 16, and presented in seconds.

Fixes #39616

@googlebot googlebot added the cla: yes Used by googlebot to label PRs as having a valid CLA. The text of this label should not change. label Jul 19, 2020
@gopherbot
Copy link
Contributor

This PR (HEAD: 5259b3b) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/go/+/243402 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

@howjmay howjmay force-pushed the fail_MarshalBinary branch from 5259b3b to c236273 Compare July 20, 2020 17:08
@gopherbot
Copy link
Contributor

This PR (HEAD: c236273) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/go/+/243402 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

@howjmay
Copy link
Contributor Author

howjmay commented Aug 8, 2020

Hi @rsc is there anything that I should add or fix in this pr?

@gopherbot
Copy link
Contributor

Message from Hau Yang:

Patch Set 2:

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/243402.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

Message from Ian Lance Taylor:

Patch Set 2:

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/243402.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

Message from Hau Yang:

Patch Set 2:

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/243402.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

Message from Hau Yang:

Patch Set 2:

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/243402.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

Message from Ian Lance Taylor:

Patch Set 2:

(6 comments)


Please don’t reply on this GitHub thread. Visit golang.org/cl/243402.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

Message from Ian Lance Taylor:

Patch Set 2:

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/243402.
After addressing review feedback, remember to publish your drafts!

@howjmay howjmay force-pushed the fail_MarshalBinary branch from c236273 to e635355 Compare August 22, 2021 09:32
@howjmay howjmay changed the title src/time: Support LMT in MarshalBinary, UnmarshalBinary time: support fractional timezone minutes in MarshalBinary Aug 22, 2021
@gopherbot
Copy link
Contributor

This PR (HEAD: e635355) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/go/+/243402 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

@howjmay howjmay force-pushed the fail_MarshalBinary branch 2 times, most recently from d40bddf to 560fe45 Compare August 22, 2021 09:36
@gopherbot
Copy link
Contributor

This PR (HEAD: 560fe45) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/go/+/243402 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

@howjmay howjmay force-pushed the fail_MarshalBinary branch from 560fe45 to 3ffb959 Compare August 22, 2021 09:37
@gopherbot
Copy link
Contributor

This PR (HEAD: 3ffb959) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/go/+/243402 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

@gopherbot
Copy link
Contributor

Message from Hau Yang:

Patch Set 2:

(6 comments)


Please don’t reply on this GitHub thread. Visit golang.org/cl/243402.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

Message from Ian Lance Taylor:

Patch Set 5:

(2 comments)


Please don’t reply on this GitHub thread. Visit golang.org/cl/243402.
After addressing review feedback, remember to publish your drafts!

@howjmay howjmay force-pushed the fail_MarshalBinary branch from 3ffb959 to 799caf9 Compare August 23, 2021 20:04
@gopherbot
Copy link
Contributor

This PR (HEAD: 799caf9) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/go/+/243402 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

@howjmay howjmay force-pushed the fail_MarshalBinary branch from 799caf9 to ef96010 Compare August 23, 2021 20:06
@gopherbot
Copy link
Contributor

This PR (HEAD: ef96010) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/go/+/243402 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

@howjmay howjmay force-pushed the fail_MarshalBinary branch from ef96010 to fc29404 Compare August 23, 2021 20:09
@gopherbot
Copy link
Contributor

This PR (HEAD: fc29404) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/go/+/243402 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

@howjmay howjmay force-pushed the fail_MarshalBinary branch from fc29404 to e55c117 Compare August 23, 2021 20:15
@gopherbot
Copy link
Contributor

This PR (HEAD: e55c117) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/go/+/243402 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

@gopherbot
Copy link
Contributor

Message from Hau Yang:

Patch Set 7:

(2 comments)


Please don’t reply on this GitHub thread. Visit golang.org/cl/243402.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

Message from Ian Lance Taylor:

Patch Set 9:

(5 comments)


Please don’t reply on this GitHub thread. Visit golang.org/cl/243402.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

This PR (HEAD: 280628f) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/go/+/243402 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

@gopherbot
Copy link
Contributor

Message from Hau Yang:

Patch Set 10:

(5 comments)


Please don’t reply on this GitHub thread. Visit golang.org/cl/243402.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

Message from Ian Lance Taylor:

Patch Set 10:

(2 comments)


Please don’t reply on this GitHub thread. Visit golang.org/cl/243402.
After addressing review feedback, remember to publish your drafts!

If the time is in 'LMT' and has fractional minute, then
`MarshalBinary()` and `UnmarshalBinary()` will encode/decode the time
in `timeBinaryVersionV2` in which the fractional minute is at
bit 15 and 16, and presented in seconds.

Fixes golang#39616
@gopherbot
Copy link
Contributor

This PR (HEAD: 455d7a2) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/go/+/243402 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

@gopherbot
Copy link
Contributor

Message from Hau Yang:

Patch Set 11:

(2 comments)


Please don’t reply on this GitHub thread. Visit golang.org/cl/243402.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

Message from Ian Lance Taylor:

Patch Set 11: Run-TryBot+1


Please don’t reply on this GitHub thread. Visit golang.org/cl/243402.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

Message from Go Bot:

Patch Set 11:

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/243402.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

Message from Go Bot:

Patch Set 11:

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/243402.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

Message from Go Bot:

Patch Set 11:

(2 comments)


Please don’t reply on this GitHub thread. Visit golang.org/cl/243402.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

Message from Go Bot:

Patch Set 11:

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/243402.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

Message from Go Bot:

Patch Set 11: TryBot-Result-1

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/243402.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

Message from Ian Lance Taylor:

Patch Set 12: Patch Set 11 was rebased


Please don’t reply on this GitHub thread. Visit golang.org/cl/243402.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

Message from Ian Lance Taylor:

Patch Set 12: Run-TryBot+1


Please don’t reply on this GitHub thread. Visit golang.org/cl/243402.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

Message from Go Bot:

Patch Set 12:

(2 comments)


Please don’t reply on this GitHub thread. Visit golang.org/cl/243402.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

Message from Go Bot:

Patch Set 12: TryBot-Result+1

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/243402.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

Message from Ian Lance Taylor:

Patch Set 12: Code-Review+2

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/243402.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

Message from Hau Yang:

Patch Set 12:

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/243402.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link
Contributor

Message from Carlos Amedee:

Patch Set 12: Trust+1


Please don’t reply on this GitHub thread. Visit golang.org/cl/243402.
After addressing review feedback, remember to publish your drafts!

gopherbot pushed a commit that referenced this pull request Sep 17, 2021
If the time is in 'LMT' and has fractional minute, then
`MarshalBinary()` and `UnmarshalBinary()` will encode/decode the time
in `timeBinaryVersionV2` in which the fractional minute is at
bit 15 and 16, and presented in seconds.

Fixes #39616

Change-Id: Ib762fb5fa26f54b1a8377a5dde0b994dd5a1236a
GitHub-Last-Rev: 455d7a2
GitHub-Pull-Request: #40293
Reviewed-on: https://go-review.googlesource.com/c/go/+/243402
Run-TryBot: Ian Lance Taylor <[email protected]>
TryBot-Result: Go Bot <[email protected]>
Reviewed-by: Ian Lance Taylor <[email protected]>
Trust: Carlos Amedee <[email protected]>
@gopherbot
Copy link
Contributor

This PR is being closed because golang.org/cl/243402 has been merged.

@gopherbot gopherbot closed this Sep 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Used by googlebot to label PRs as having a valid CLA. The text of this label should not change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

time: MarshalBinary fails on valid Time
3 participants