OSCAR-code/sleepyhead/SleepLib
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
..
loader_plugins Update all calls to fromMSecsSinceEpoch to specify UTC 2015-08-11 15:01:24 -05:00
calcs.cpp Clean some more warnings up 2014-10-09 02:51:09 +10:00
calcs.h New Graph QMenu magic and new icons 2014-08-17 22:56:13 +10:00
common.cpp Minor cruft.. shut annoying g++ variable warnings up 2014-10-09 02:06:08 +10:00
common.h Minor cruft.. shut annoying g++ variable warnings up 2014-10-09 02:06:08 +10:00
day.cpp Invalidate hour cache when enabling/disabling sessions 2014-10-11 13:07:29 +10:00
day.h Remove machine from day's machinelist when last session gone, fixing rxchanges bug 2014-09-17 16:59:58 +10:00
event.cpp Fix duplicate ResMed Ti/Te signals from importing 2014-08-22 21:54:24 +10:00
event.h Fix duplicate ResMed Ti/Te signals from importing 2014-08-22 21:54:24 +10:00
journal.cpp Merge Summary Files 2014-09-05 00:59:54 +10:00
journal.h Remove bottom duration in statusbar 2014-08-18 03:03:50 +10:00
machine_common.cpp CMS50F37 added PerfusionIndex graph and stuff 2014-08-19 02:10:47 +10:00
machine_common.h Mega update: Summary demand loading, Overview summarychart rework, rxchanges caching 2014-09-12 00:23:08 +10:00
machine_loader.cpp Make CreateMachine searchf for lost machine folders 2014-09-30 19:05:29 +10:00
machine_loader.h Some machine pixmap stuff, use gzip compatible Summaries.xml, preliminary PRS1 .006 oximetery parser 2014-09-30 00:41:40 +10:00
machine.cpp Window 32bit build fixes, variable cleanups 2014-10-02 20:02:33 +10:00
machine.h Fix Machine::m_availableChannels glitch breaking oximetry statistics 2014-09-30 21:02:35 +10:00
preferences.cpp New Graph QMenu magic and new icons 2014-08-17 22:56:13 +10:00
preferences.h New Graph QMenu magic and new icons 2014-08-17 22:56:13 +10:00
profiles.cpp Fix session search function to make sure invalidates properly 2014-10-11 22:27:10 +10:00
profiles.h Invalidate hour cache when enabling/disabling sessions 2014-10-11 13:07:29 +10:00
progressdialog.cpp Remove bottom duration in statusbar 2014-08-18 03:03:50 +10:00
progressdialog.h Remove bottom duration in statusbar 2014-08-18 03:03:50 +10:00
schema.cpp Reset channel strings on language change 2014-10-03 03:46:08 +10:00
schema.h Reset channel strings on language change 2014-10-03 03:46:08 +10:00
serialoximeter.cpp Get CMS50IW model string properly 2014-09-19 13:19:11 +10:00
serialoximeter.h Move oximeter select combo to Oximetery wizard, add a panel with some CMS50I/F device related stuff 2014-09-18 20:53:59 +10:00
session.cpp Invalidate hour cache when enabling/disabling sessions 2014-10-11 13:07:29 +10:00
session.h Invalidate hour cache when enabling/disabling sessions 2014-10-11 13:07:29 +10:00