OSCAR-code/sleepyhead/Graphs
reznet 59a0823d20 Update all calls to fromMSecsSinceEpoch to specify UTC
QT 5 changed the behavior of QDateTime::fromMSecsSinceEpoch to return the result in local time zone, whereas in QT 4, it returned UTC.  On systems that do not support time zones, the QT 5 version still returns UTC.  But for all other systems, the api change causes confusion in the SH UI because some date and time values are displayed in UTC instead of the local time zone.  This manifests itself when the user is in USA which has a negative UTC offset.  When selecting a date range to display in the overview screen, the displayed dates appear to be one day behind the selected date range.

For consistently, SH should always use UTC internally and only convert to the local time zone when displaying data to the user.  This will ensure that the time zone information is preserved correctly when the UTC offset of the user's machine changes due to DST changes or traveling.

There are a few calls to fromMSecsSinceEpoch which should be using local time, and those will be updated in future commits.
2015-08-11 15:01:24 -05:00
..
gdailysummary.cpp Minor cruft.. shut annoying g++ variable warnings up 2014-10-09 02:06:08 +10:00
gdailysummary.h New Graph QMenu magic and new icons 2014-08-17 22:56:13 +10:00
gFlagsLine.cpp Fix Event Flags tooltip durations not displaying properly 2014-10-15 21:25:05 +10:00
gFlagsLine.h Window 32bit build fixes, variable cleanups 2014-10-02 20:02:33 +10:00
gFooBar.cpp New Graph QMenu magic and new icons 2014-08-17 22:56:13 +10:00
gFooBar.h New Graph QMenu magic and new icons 2014-08-17 22:56:13 +10:00
gGraph.cpp Fix some errors detected by a little valgrind checking 2014-10-03 17:09:35 +10:00
gGraph.h Removed machine section out of profile.xml to machine.xml, created profiles.xml list, set some default overview graphs 2014-09-15 01:29:07 +10:00
gGraphView.cpp Update all calls to fromMSecsSinceEpoch to specify UTC 2015-08-11 15:01:24 -05:00
gGraphView.h Some machine pixmap stuff, use gzip compatible Summaries.xml, preliminary PRS1 .006 oximetery parser 2014-09-30 00:41:40 +10:00
glcommon.cpp minor barchart gradient optimisation 2014-09-16 12:15:19 +10:00
glcommon.h Add AirSense 10 CSR flags. Fixed summary load order messing up day splitting. 2014-09-22 14:32:15 +10:00
gLineChart.cpp Make Daily sidepanel and right side bar size changes persistent 2014-10-02 21:22:30 +10:00
gLineChart.h Some machine pixmap stuff, use gzip compatible Summaries.xml, preliminary PRS1 .006 oximetery parser 2014-09-30 00:41:40 +10:00
gLineOverlay.cpp Window 32bit build fixes, variable cleanups 2014-10-02 20:02:33 +10:00
gLineOverlay.h New Graph QMenu magic and new icons 2014-08-17 22:56:13 +10:00
graphdata_custom.h Use C++11 nullptr. 2014-04-24 08:17:53 +10:00
graphdata.h Use C++11 nullptr. 2014-04-24 08:17:53 +10:00
gSegmentChart.cpp Make Pie chart prettier 2014-08-28 01:00:55 +10:00
gSegmentChart.h New Graph QMenu magic and new icons 2014-08-17 22:56:13 +10:00
gSessionTimesChart.cpp Update all calls to fromMSecsSinceEpoch to specify UTC 2015-08-11 15:01:24 -05:00
gSessionTimesChart.h Some machine pixmap stuff, use gzip compatible Summaries.xml, preliminary PRS1 .006 oximetery parser 2014-09-30 00:41:40 +10:00
gspacer.cpp New Graph QMenu magic and new icons 2014-08-17 22:56:13 +10:00
gspacer.h New Graph QMenu magic and new icons 2014-08-17 22:56:13 +10:00
gStatsLine.cpp New Graph QMenu magic and new icons 2014-08-17 22:56:13 +10:00
gStatsLine.h New Graph QMenu magic and new icons 2014-08-17 22:56:13 +10:00
gSummaryChart.cpp Make Daily sidepanel and right side bar size changes persistent 2014-10-02 21:22:30 +10:00
gSummaryChart.h minor barchart gradient optimisation 2014-09-16 12:15:19 +10:00
gXAxis.cpp Use UTC when converting to QDateTime for graph axis 2015-08-11 13:34:45 -05:00
gXAxis.h Mega update: Summary demand loading, Overview summarychart rework, rxchanges caching 2014-09-12 00:23:08 +10:00
gYAxis.cpp Session times replacement chart (work in progress) 2014-09-04 12:17:59 +10:00
gYAxis.h More Xaxis/yaxis layout consistency stuff 2014-08-29 15:32:49 +10:00
layer.cpp Bye bye Graph Snapshots, hello Clone Graphs 2014-08-28 18:01:25 +10:00
layer.h Removed machine section out of profile.xml to machine.xml, created profiles.xml list, set some default overview graphs 2014-09-15 01:29:07 +10:00
MinutesAtPressure.cpp Rename mainwindow qsplitters, suppress some warnings 2014-10-03 12:31:51 +10:00
MinutesAtPressure.h Bye bye Graph Snapshots, hello Clone Graphs 2014-08-28 18:01:25 +10:00