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 inconsistent timestamp json encode/decode (#12396) #15726

Merged
merged 1 commit into from
Feb 5, 2024
Merged

Conversation

zhangskz
Copy link
Member

@zhangskz zhangskz commented Feb 5, 2024

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

Closes #12396

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

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 zhangskz requested a review from haberman February 5, 2024 19:15
@zhangskz zhangskz requested a review from a team as a code owner February 5, 2024 19:15
@zhangskz zhangskz removed the request for review from a team February 5, 2024 19:16
@zhangskz zhangskz merged commit e99f27e into 26.x Feb 5, 2024
162 checks passed
@zhangskz zhangskz deleted the cp-47e92cd branch February 5, 2024 22:20
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.

3 participants