Created attachment 149917 [details] X_offset_of_2_hours_after_reopening_the_project Hi, when I save my LabPlot project and reopen it, my data points in the xy graph has an offset of 2 hours. See screenshots in the attachments. Kind Regards from Germany Tanja
Created attachment 149918 [details] Text_file_with_data_points_to_import
Created attachment 149919 [details] Importing_data
Created attachment 149920 [details] New_project_shows_correct_xy_graph
I could reproduce the problem. Also the custom number of ticks is not restored. I work on fixing this.
Git commit 0d2494a924fa35b4d471052f8c97e2d26e2a12fc by Stefan Gerlach. Committed on 10/07/2022 at 22:03. Pushed by sgerlach into branch 'master'. Consistently use date time in UTC to avoid confusion with locale date time settings M +4 -4 src/backend/lib/Range.h M +5 -2 src/backend/worksheet/plots/cartesian/Axis.cpp M +14 -14 src/backend/worksheet/plots/cartesian/CartesianPlot.cpp M +5 -0 src/backend/worksheet/plots/cartesian/XYCurve.cpp M +20 -16 src/kdefrontend/dockwidgets/CartesianPlotDock.cpp https://invent.kde.org/education/labplot/commit/0d2494a924fa35b4d471052f8c97e2d26e2a12fc
The fix is also in flatpak via patch.
Created attachment 150536 [details] Version Jul 10 2022, 22:26:15
Created attachment 150537 [details] Fresh imported data has offset in xy graph
Created attachment 150538 [details] After saving as project, closing and reopening the offset in xy graph is gone
Created attachment 150539 [details] Changing the value of a time data point by hand generates an offset again
Hi Stefan, again many THANKS for your help. With your update the loaded project shows now a correct xy graph. But now the offset exists for fresh imported data, or when a time value will be changed. I added some screenshots: "Version Jul 10 2022, 22:26:15" Shows the version I tested "Fresh imported data has offset in xy graph" Shows a generated graph from fresh imported data into the table. The generated graph has an offset of -2 hours. "After saving as project, closing and reopening the offset in xy graph is gone" After saving the table with fresh imported data and the xy graph with -2 hour offset as project, closing LabPlot2, reopening it and loading the saved project, everything is correct. " Changing the value of a time data point by hand generates an offset again" But changing the first time value from "19.06.2022 00:00" to "19.06.2022 00:01" generates for that data point an -2 hour offset again. Many Thanks Tanja
Hi Tanja, the two problems (import date time data and editing date time) are now fixed (master, next flatpak and appimage). Please let me know if there are any other issues. best, Stefan