-
Notifications
You must be signed in to change notification settings - Fork 540
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ShowDatePicker Misses dates when UseLocalTime = true #256
Comments
It does in fact look like we have a bug when However, because this is 1) still somewhat functional, 2) just convenience feature for time series axes context menus, and 3) an internal API function (use at your own risk!), I'm going to hold off on fixing until more impactful work is complete. In the meantime, please consider investigating the issue and submitting a PR to fix it. I will happily review it. |
@epezent I think I found the same issue rooted elsewhere and may help. I am just documenting it on this thread. Using this code,
the times at the bottom begin as the names of the months. Where there's grid lines up from each month, zoom into October slowly, as the names transition to the |
In my locale, 31 Mar 2024 the Daylight Saving Time has started (at 03:00:00 local = 01:00:00 GMT clocks were turned forward 1 hour to 04:00:00 local = 01:00:00 GMT) and since then time axis ticks started behaving differently. Here's a test case to confirm:
You can observe it by dragging time axis left and right on either plot, the January 1 label keeps changing between --01 and --12 when The cause is:
So I think an easy fix would be to always clear |
Uhh it's complex, FloorTime should behave differently depending on
|
|
Using the code below, if you click on
June 2021
->Jan
->1
(and make sure you click on the1
), and then you go back toJanuary 2021
->Jun
, it puts the date to31 May, 2021
. You can repeat this forMay, June, July, August, September, October
, and you will see that it only works up tillApril
and afterNovember
.Edit:
I think it has to do with
ImPlot_Style.UseLocalTime = true;
, because removing this solves the issue, however in my main program it messes with the time in the plot axis.The text was updated successfully, but these errors were encountered: