noritada / grib-rs

GRIB format parser for Rust
Apache License 2.0
57 stars 9 forks source link

Chrono v0.4.23 migration #28

Closed noritada closed 2 years ago

noritada commented 2 years ago

This PR provides migration to Chrono v0.4.23.

In Chrono v0.4.23, Utc::ymd() and Date::and_hms(), which cause panics for invalid inputs, are deprecated in favor of APIs returning LocalResult. Also, Utc::with_ymd_and_hms() is newly introduced.

This PR makes an API change; Identification::ref_time() now returns chrono::DateTime wrapped by Result.