time-rs / time

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

Fix incorrect RFC3339 offset parsing #478

Closed zhu-he closed 2 years ago

zhu-he commented 2 years ago

Fix a bug when parsing RFC3339 offset in range from -00:01 to -00:59.

codecov[bot] commented 2 years ago

Codecov Report

Merging #478 (11fe2fb) into main (9a3f985) will increase coverage by 0.00%. The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #478   +/-   ##
=======================================
  Coverage   99.48%   99.48%           
=======================================
  Files          70       70           
  Lines        7201     7206    +5     
=======================================
+ Hits         7164     7169    +5     
  Misses         37       37           
Impacted Files Coverage Δ
src/parsing/parsable.rs 98.75% <100.00%> (+0.01%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 9a3f985...11fe2fb. Read the comment docs.

jhpratt commented 2 years ago

Good catch. Thank you!