Skip to content

Fix inconsistent timestamp json encode/decode#12396

Closed
kindratmakc wants to merge 1 commit intoprotocolbuffers:mainfrom
kindratmakc:bugfix/inconsistent-timestamp-json-encode-decode
Closed

Fix inconsistent timestamp json encode/decode#12396
kindratmakc wants to merge 1 commit intoprotocolbuffers:mainfrom
kindratmakc:bugfix/inconsistent-timestamp-json-encode-decode

Conversation

@kindratmakc
Copy link
Copy Markdown
Contributor

@kindratmakc kindratmakc commented Apr 3, 2023

Protobuf php lib encodes 123_000_000 nano like this: 2000-01-01T00:00:00.123Z but then it gets decoded into 123 nanoseconds instead of 123_000_000.

There were issue opened some time ago that also describes this behaviour #4335

@kindratmakc kindratmakc requested a review from a team as a code owner April 3, 2023 15:02
@kindratmakc kindratmakc requested review from anandolee and removed request for a team April 3, 2023 15:02
@google-cla
Copy link
Copy Markdown

google-cla Bot commented Apr 3, 2023

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@kindratmakc
Copy link
Copy Markdown
Contributor Author

Hi @haberman
Any chance to take a look? Look like a bit essential issue

@haberman haberman added the 🅰️ safe for tests Mark a commit as safe to run presubmits over label May 15, 2023
@github-actions github-actions Bot removed the 🅰️ safe for tests Mark a commit as safe to run presubmits over label May 15, 2023
@hlopko hlopko added php 🅰️ safe for tests Mark a commit as safe to run presubmits over labels May 30, 2023
@hlopko hlopko requested a review from haberman May 30, 2023 09:57
@github-actions github-actions Bot removed the 🅰️ safe for tests Mark a commit as safe to run presubmits over label May 30, 2023
@github-actions
Copy link
Copy Markdown

We triage inactive PRs and issues in order to make it easier to find active work. If this PR should remain active, please add a comment.

This PR is labeled inactive because the last activity was over 90 days ago. This PR will be closed and archived after 14 additional days without activity.

@github-actions github-actions Bot added the inactive Denotes the issue/PR has not seen activity in the last 90 days. label Nov 25, 2023
@dmkulyk
Copy link
Copy Markdown

dmkulyk commented Nov 25, 2023

Very useful fix. Need to be merged

@github-actions github-actions Bot removed the inactive Denotes the issue/PR has not seen activity in the last 90 days. label Nov 26, 2023
copybara-service Bot pushed a commit that referenced this pull request Jan 31, 2024
Protobuf php lib encodes 123_000_000 nano like this: 2000-01-01T00:00:00.**123**Z but then it gets decoded into 123 nanoseconds instead of 123_000_000.

There were issue opened some time ago that also describes this behaviour #4335

Closes #12396

COPYBARA_INTEGRATE_REVIEW=#12396 from kindratmakc:bugfix/inconsistent-timestamp-json-encode-decode df47c96
FUTURE_COPYBARA_INTEGRATE_REVIEW=#12396 from kindratmakc:bugfix/inconsistent-timestamp-json-encode-decode df47c96
PiperOrigin-RevId: 603110109
copybara-service Bot pushed a commit that referenced this pull request Jan 31, 2024
Protobuf php lib encodes 123_000_000 nano like this: 2000-01-01T00:00:00.**123**Z but then it gets decoded into 123 nanoseconds instead of 123_000_000.

There were issue opened some time ago that also describes this behaviour #4335

Closes #12396

COPYBARA_INTEGRATE_REVIEW=#12396 from kindratmakc:bugfix/inconsistent-timestamp-json-encode-decode df47c96
FUTURE_COPYBARA_INTEGRATE_REVIEW=#12396 from kindratmakc:bugfix/inconsistent-timestamp-json-encode-decode df47c96
PiperOrigin-RevId: 603110109
zhangskz pushed a commit that referenced this pull request Feb 5, 2024
Protobuf php lib encodes 123_000_000 nano like this: 2000-01-01T00:00:00.**123**Z but then it gets decoded into 123 nanoseconds instead of 123_000_000.

There were issue opened some time ago that also describes this behaviour #4335

Closes #12396

COPYBARA_INTEGRATE_REVIEW=#12396 from kindratmakc:bugfix/inconsistent-timestamp-json-encode-decode df47c96
PiperOrigin-RevId: 603118615
zhangskz added a commit that referenced this pull request Feb 5, 2024
Protobuf php lib encodes 123_000_000 nano like this: 2000-01-01T00:00:00.**123**Z but then it gets decoded into 123 nanoseconds instead of 123_000_000.

There were issue opened some time ago that also describes this behaviour #4335

Closes #12396

COPYBARA_INTEGRATE_REVIEW=#12396 from kindratmakc:bugfix/inconsistent-timestamp-json-encode-decode df47c96
PiperOrigin-RevId: 603118615

Co-authored-by: kindratmakc <[email protected]>
deannagarcia pushed a commit to deannagarcia/protobuf that referenced this pull request Jun 20, 2024
Protobuf php lib encodes 123_000_000 nano like this: 2000-01-01T00:00:00.**123**Z but then it gets decoded into 123 nanoseconds instead of 123_000_000.

There were issue opened some time ago that also describes this behaviour protocolbuffers#4335

Closes protocolbuffers#12396

COPYBARA_INTEGRATE_REVIEW=protocolbuffers#12396 from kindratmakc:bugfix/inconsistent-timestamp-json-encode-decode df47c96
PiperOrigin-RevId: 603118615
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants