time-rs / time

The most used Rust library for date and time handling.
https://time-rs.github.io
Apache License 2.0
1.09k stars 273 forks source link

Fix sub-second negative Duration serialization. #692

Open vriesk opened 2 months ago

vriesk commented 2 months ago

This addresses the problem that the Duration's sign will "disappear" both during serialization and deserialization of sub-second Durations.

codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 97.6%. Comparing base (4a74924) to head (e596d04). Report is 43 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #692 +/- ## ======================================= - Coverage 97.8% 97.6% -0.2% ======================================= Files 81 83 +2 Lines 9378 9010 -368 ======================================= - Hits 9169 8792 -377 - Misses 209 218 +9 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.