lib_base: Fix bug in Time.Protocol with negative seconds
Merged as part of !2721 (merged)
Context
Extract the bug fix found in !2688 (merged)
Manually testing the MR
$ dune exec src/lib_base/test/test_time.exe
Without the fix, the added test throws.
Checklist
- N/A Document the interface of any function added or modified (see the coding guidelines)
-
Provide automatic testing (see the testing guide). - N/A For new features and bug fixes, add an item in the appropriate changelog (
docs/protocols/alpha.rstfor the protocol and the environment, theDevelopment Versionsection ofCHANGES.mdfor everything else). -
Select suitable reviewers using the Reviewersfield below.
Edited by Clément Hurlin