epezent / implot

Immediate Mode Plotting
MIT License
4.66k stars 520 forks source link

Wrong date: month has +1 #360

Closed tuket closed 2 years ago

tuket commented 2 years ago

I have experienced a problem with the date in plots: the month was always one more than it should.

Check out this line: https://github.com/epezent/implot/blob/3dd7e75c7de3ea6f6030ed7c0b654a31158d6abb/implot.cpp#L1030

tuket commented 2 years ago

Never mind, it correct actually: https://en.cppreference.com/w/cpp/chrono/c/tm