Commit Graph

12 Commits

Author SHA1 Message Date
Mark Watkins
8acbfe0e92 Clean up some more warnings, and update Copyright strings 2018-03-28 17:10:52 +10:00
Mark Watkins
4ed77fc64a Clean up a few unused variables and nullptr risks with clang static analyzer. Fix a bug in Journal day selection 2018-03-28 16:22:42 +10:00
Mark Watkins
f69eda1101 Update source file header messages 2016-03-01 21:59:04 +10:00
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
Mark Watkins
3558b69065 Fix event loading glitch, and 0.0 smiley resmed glitch 2014-09-17 16:12:38 +10:00
Mark Watkins
b45e7efed5 New Graph QMenu magic and new icons 2014-08-17 22:56:13 +10:00
Mark Watkins
a5cb32f4cf Major cleanup. Added MachineInfo structure. Intellipap BiLevel support plus backup 2014-07-28 23:56:29 +10:00
Mark Watkins
083a667527 Standardize on a global profile object 2014-07-11 07:09:38 -05:00
Mark Watkins
ce1e03e86a New OximeterImport Module 2014-05-25 17:07:08 +10:00
Sean Stangl
3a7ce34b1c Use C++11 nullptr.
Signed-off-by: Mark Watkins <jedimark@users.sourceforge.net>
2014-04-24 08:17:53 +10:00
Sean Stangl
c29313ab88 Auto-convert the SleepLib/ subdirectory with astyle.
Signed-off-by: Mark Watkins <jedimark@users.sourceforge.net>
2014-04-17 16:18:49 +10:00
Mark Watkins
a9b2fe7db2 Added Position tracking foundation, and Somnopose CSV importer 2014-04-15 23:59:24 +10:00