OSCAR-code/sleepyhead/SleepLib/loader_plugins
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
..
cms50_loader.cpp Windows build fixes, bump build number 2014-10-02 17:56:57 +10:00
cms50_loader.h CMS50F37 debug test 2014-08-18 09:29:30 +10:00
cms50f37_loader.cpp Clean some more warnings up 2014-10-09 02:51:09 +10:00
cms50f37_loader.h Get CMS50IW model string properly 2014-09-19 13:19:11 +10:00
icon_loader.cpp Clean some more warnings up 2014-10-09 02:51:09 +10:00
icon_loader.h New Graph QMenu magic and new icons 2014-08-17 22:56:13 +10:00
intellipap_loader.cpp Clean some more warnings up 2014-10-09 02:51:09 +10:00
intellipap_loader.h New Graph QMenu magic and new icons 2014-08-17 22:56:13 +10:00
md300w1_loader.cpp New Graph QMenu magic and new icons 2014-08-17 22:56:13 +10:00
md300w1_loader.h Remove machine from day's machinelist when last session gone, fixing rxchanges bug 2014-09-17 16:59:58 +10:00
mseries_loader.cpp Clean some more warnings up 2014-10-09 02:51:09 +10:00
mseries_loader.h Initial Weinmann Support, Pressure Relief Fixes, Pressure String Fixes 2014-08-03 23:00:13 +10:00
prs1_loader.cpp Clean some more warnings up 2014-10-09 02:51:09 +10:00
prs1_loader.h PRS1 Oximetery attachment fixes 2014-09-30 15:25:11 +10:00
resmed_loader.cpp Update all calls to fromMSecsSinceEpoch to specify UTC 2015-08-11 15:01:24 -05:00
resmed_loader.h Fix French ResMed leak string, solve Q_FOREACH problem with Qt 5.4.2 2015-08-02 15:53:09 +10:00
somnopose_loader.cpp Update all calls to fromMSecsSinceEpoch to specify UTC 2015-08-11 15:01:24 -05:00
somnopose_loader.h Remove machine from day's machinelist when last session gone, fixing rxchanges bug 2014-09-17 16:59:58 +10:00
weinmann_loader.cpp Clean some more warnings up 2014-10-09 02:51:09 +10:00
weinmann_loader.h New Graph QMenu magic and new icons 2014-08-17 22:56:13 +10:00
zeo_loader.cpp Clean some more warnings up 2014-10-09 02:51:09 +10:00
zeo_loader.h Remove machine from day's machinelist when last session gone, fixing rxchanges bug 2014-09-17 16:59:58 +10:00