Skip to content

Fix inconsistent timestamp json encode/decode (#12396)#15726

Merged
zhangskz merged 1 commit into26.xfrom
cp-47e92cd
Feb 5, 2024
Merged

Fix inconsistent timestamp json encode/decode (#12396)#15726
zhangskz merged 1 commit into26.xfrom
cp-47e92cd

Conversation

@zhangskz
Copy link
Copy Markdown
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
@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