I am trying to use TGraph with a time axis. However while month, day, hour and minutes come out correctly, the year changes from 2020 to 2045. I created a small script to demonstrate this
As output I get
year of test data point: 2020
and the attached screenshot, which shows the year as 2045 on the x-axis. How can I get the correct year here?
Ah yes, adding SetTimeOffset(0) to my code indeed solves this problem. I have to admit I dont really understand why this command has this effect, but it works now. Thanks!