sdk-typescript icon indicating copy to clipboard operation
sdk-typescript copied to clipboard

fix(common): preserve zero optional durations

Open sidsri14 opened this issue 4 months ago • 1 comments

What changed

Updated msOptionalToTs to treat only null and undefined as absent values, so a numeric 0 duration is preserved and converted to a zero protobuf timestamp.

Added a unit test covering msOptionalToTs(0).

Fixes #2233.

Validation

sidsri14 avatar Jul 23 '26 15:07 sidsri14

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Jul 23 '26 15:07 CLAassistant

@sidsri14 May you please sign the CLA?

I can't have a look at your contribution until the CLA is cleared.

mjameswh avatar Aug 05 '26 22:08 mjameswh