OSCAR-code/sleepyhead
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
..
docs Clean up OpenGL/BrokenGL startup messages a bit, remove unused Angle related stuff 2014-10-03 12:58:44 +10:00
fonts Added SessionBar for easier CPAP session toggling, directory layout clean 2013-10-11 03:37:00 +10:00
Graphs Update all calls to fromMSecsSinceEpoch to specify UTC 2015-08-11 15:01:24 -05:00
icons Fix Machine::m_availableChannels glitch breaking oximetry statistics 2014-09-30 21:02:35 +10:00
scripts Clean up OpenGL/BrokenGL startup messages a bit, remove unused Angle related stuff 2014-10-03 12:58:44 +10:00
SleepLib Update all calls to fromMSecsSinceEpoch to specify UTC 2015-08-11 15:01:24 -05:00
build_number.h Windows build fixes, bump build number 2014-10-02 17:56:57 +10:00
common_gui.cpp New Graph QMenu magic and new icons 2014-08-17 22:56:13 +10:00
common_gui.h New Graph QMenu magic and new icons 2014-08-17 22:56:13 +10:00
COPYING Made Welcome browser and intro HTML text translatable 2014-04-15 14:47:23 +10:00
daily.cpp Update all calls to fromMSecsSinceEpoch to specify UTC 2015-08-11 15:01:24 -05:00
daily.h Make Daily sidepanel and right side bar size changes persistent 2014-10-02 21:22:30 +10:00
daily.ui Make Daily sidepanel and right side bar size changes persistent 2014-10-02 21:22:30 +10:00
exportcsv.cpp New Graph QMenu magic and new icons 2014-08-17 22:56:13 +10:00
exportcsv.h New Graph QMenu magic and new icons 2014-08-17 22:56:13 +10:00
exportcsv.ui Renamed src directory to sleepyhead 2013-10-10 02:47:28 +10:00
logger.cpp New Graph QMenu magic and new icons 2014-08-17 22:56:13 +10:00
logger.h Dump some line cursor data as a debug test 2014-07-22 02:14:07 +10:00
main.cpp Clean up OpenGL/BrokenGL startup messages a bit, remove unused Angle related stuff 2014-10-03 12:58:44 +10:00
mainwindow.cpp Fix change folder restart crash, added tooltip on session switches 2014-10-11 10:44:30 +10:00
mainwindow.h Rename mainwindow qsplitters, suppress some warnings 2014-10-03 12:31:51 +10:00
mainwindow.ui Rename mainwindow qsplitters, suppress some warnings 2014-10-03 12:31:51 +10:00
newprofile.cpp New Graph QMenu magic and new icons 2014-08-17 22:56:13 +10:00
newprofile.h New Graph QMenu magic and new icons 2014-08-17 22:56:13 +10:00
newprofile.ui New welcome page, and some unfinished work on a crash 2014-07-25 17:53:48 +10:00
overview.cpp Total Time in Apnea overview chart 2014-09-19 03:58:00 +10:00
overview.h Total Time in Apnea overview chart 2014-09-19 03:58:00 +10:00
overview.ui Disable linecursor during printing, move date indicators down bottom in overview 2014-08-29 01:45:46 +10:00
oximeterimport.cpp Update all calls to fromMSecsSinceEpoch to specify UTC 2015-08-11 15:01:24 -05:00
oximeterimport.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
oximeterimport.ui Clean up oximeter wizard select page layout a bit 2014-09-19 01:05:46 +10:00
oximetry.ui Some windows stylesheet fixes 2013-10-17 02:54:54 +10:00
preferencesdialog.cpp Minor cruft.. shut annoying g++ variable warnings up 2014-10-09 02:06:08 +10:00
preferencesdialog.h Preferences cleanup, overview overhead calculation works 2014-09-13 21:34:18 +10:00
preferencesdialog.ui Minor cruft.. shut annoying g++ variable warnings up 2014-10-09 02:06:08 +10:00
profileselect.cpp Reset channel strings on language change 2014-10-03 03:46:08 +10:00
profileselect.h New Graph QMenu magic and new icons 2014-08-17 22:56:13 +10:00
profileselect.ui Appearance tweaks to Statistics page 2014-05-27 05:29:01 +10:00
report.ui Renamed src directory to sleepyhead 2013-10-10 02:47:28 +10:00
reports.cpp Stop ResMed importer crashing on zero record STR.edf files 2015-07-31 08:36:52 +10:00
reports.h New Graph QMenu magic and new icons 2014-08-17 22:56:13 +10:00
Resources.qrc Fix Machine::m_availableChannels glitch breaking oximetry statistics 2014-09-30 21:02:35 +10:00
sessionbar.cpp Some machine pixmap stuff, use gzip compatible Summaries.xml, preliminary PRS1 .006 oximetery parser 2014-09-30 00:41:40 +10:00
sessionbar.h Some machine pixmap stuff, use gzip compatible Summaries.xml, preliminary PRS1 .006 oximetery parser 2014-09-30 00:41:40 +10:00
sleepyhead.pro Stop ResMed importer crashing on zero record STR.edf files 2015-07-31 08:36:52 +10:00
statistics.cpp Fix spelling mistake in statistics 2014-10-13 14:03:18 +10:00
statistics.h Added Records box back 2014-09-30 18:40:12 +10:00
STYLE Add STYLE file for astyle. 2014-04-17 15:25:35 +10:00
translation.cpp Fix French ResMed leak string, solve Q_FOREACH problem with Qt 5.4.2 2015-08-02 15:53:09 +10:00
translation.h Reset channel strings on language change 2014-10-03 03:46:08 +10:00
updateparser.cpp New Graph QMenu magic and new icons 2014-08-17 22:56:13 +10:00
updateparser.h New Graph QMenu magic and new icons 2014-08-17 22:56:13 +10:00
UpdaterWindow.cpp New Graph QMenu magic and new icons 2014-08-17 22:56:13 +10:00
UpdaterWindow.h New Graph QMenu magic and new icons 2014-08-17 22:56:13 +10:00
UpdaterWindow.ui Renamed src directory to sleepyhead 2013-10-10 02:47:28 +10:00
version.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
welcome.cpp pixmaps to machineloader, fix xaxis scaling glitch 2014-09-18 03:20:01 +10:00
win_icon.rc MSVC++ build fixes 2014-05-08 14:09:05 +10:00