plotters-rs / plotters

A rust drawing library for high quality data plotting for both WASM and native, statically and realtimely 🦀 📈🚀
https://plotters-rs.github.io/home/
MIT License
3.89k stars 281 forks source link

[BUG] types/datetime: replace deprecated chrono::Date* with NaiveDate #530

Closed 10ne1 closed 10 months ago

10ne1 commented 10 months ago

Hello

Describe the bug Starting with chrono 0.4.23, the Date, DateTime and *_ymd() APIs got deprecated and will eventually be removed, so we should update the code to use the new APIs. Fortunately support for NaiveDate is already implemented so we just need to update some function calls and remove the deprecated trait implementations.

To Reproduce Build plotters with chrono >= 0.4.23 and notice the deprecation warnings. Tested both normal target builds and wasm32-unknown-unknown.

Version Information I use the git mainline branch, for which I created a fix which I'll post shortly closing this issue. Thanks!