Commit Graph

2057 Commits

Author SHA1 Message Date
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
reznet
b0bc8af718 Use UTC when converting to QDateTime for graph axis
QDateTime::fromMSecsSinceEpoch returns a QDateTime in the local time zone, but the ms input was created in UTC.  This causes the day part to sometimes display off by a day on the graph x axis.  This appears to be caused by a breaking change in QT 5.  Previously, fromMSecsSinceEpoch returned a QDateTime in UTC, but in QT 5, it returns the date time in the local time zone.
2015-08-11 13:34:45 -05:00
reznet
b5e92c9c49 Adds .gitignore for QT
Adding a .gitignore file for QT projects tells git to ignore the .user file generated by QT Creator.  This .gitignore file was taken from https://github.com/github/gitignore/blob/master/Qt.gitignore
2015-08-11 13:34:12 -05:00
ak1948
62f90beb4f Latest l;anguage files of 2015-8-3 2015-08-03 14:46:11 +02:00
Mark Watkins
29f869737f Portuguese ResMed Leaks 2015-08-02 16:05:56 +10:00
Mark Watkins
0f2f8f85ba Fix French ResMed leak string, solve Q_FOREACH problem with Qt 5.4.2 2015-08-02 15:53:09 +10:00
Mark Watkins
fbea37dcb5 Stop ResMed importer crashing on zero record STR.edf files 2015-07-31 08:36:52 +10:00
ak1948
f07b0ea7b4 Discard former upload: here is the Dutch file with important changes! 2014-11-06 21:26:02 +01:00
ak1948
45952d4fa3 Important update Dutch language: email changed! 2014-11-06 21:01:35 +01:00
Mark Watkins
5cc8929f4e Fix Event Flags tooltip durations not displaying properly 2014-10-15 21:25:05 +10:00
Mark Watkins
015e8df431 Fix spelling mistake in statistics 2014-10-13 14:03:18 +10:00
ak1948
616c19fbd9 Update Spanish, French and Dutch language 2014-10-11 15:18:02 +02:00
Mark Watkins
285fa6746e Fix session search function to make sure invalidates properly 2014-10-11 22:27:10 +10:00
Mark Watkins
5e8047f528 Invalidate hour cache when enabling/disabling sessions 2014-10-11 13:07:29 +10:00
Mark Watkins
dac961d981 Fix change folder restart crash, added tooltip on session switches 2014-10-11 10:44:30 +10:00
Mark Watkins
e038d291e2 MacOSX build fix 2014-10-09 02:59:24 +10:00
Mark Watkins
7782b83d90 Clean some more warnings up 2014-10-09 02:51:09 +10:00
Mark Watkins
64a1781779 Typo in the last commit 2014-10-09 02:08:46 +10:00
Mark Watkins
3ac96500d2 Minor cruft.. shut annoying g++ variable warnings up 2014-10-09 02:06:08 +10:00
Mark Watkins
b69c0236c8 Fix Purge Current CPAP Day not removing files correctly 2014-10-07 13:06:00 +10:00
Mark Watkins
a26490b99f Fix Report pressure strings 2014-10-05 13:28:59 +10:00
Mark Watkins
9849f65578 Fix some errors detected by a little valgrind checking 2014-10-03 17:09:35 +10:00
Mark Watkins
d3075f049d Clean up OpenGL/BrokenGL startup messages a bit, remove unused Angle related stuff 2014-10-03 12:58:44 +10:00
Mark Watkins
1094159657 Rename mainwindow qsplitters, suppress some warnings 2014-10-03 12:31:51 +10:00
Mark Watkins
45559ac721 Reset channel strings on language change 2014-10-03 03:46:08 +10:00
Mark Watkins
8bcb69093f Set Splitter scaling factor for right sidebar 2014-10-02 22:57:31 +10:00
Mark Watkins
2450e262ee Merge branch 'master' of ssh://git.code.sf.net/p/sleepyhead/code 2014-10-02 22:54:48 +10:00
Mark Watkins
251491674a Better UA definition 2014-10-02 22:54:32 +10:00
Mark Watkins
bc09382916 Make Daily sidepanel and right side bar size changes persistent 2014-10-02 21:22:30 +10:00
Mark Watkins
1ade0e7b04 Window 32bit build fixes, variable cleanups 2014-10-02 20:02:33 +10:00
Mark Watkins
ffeb0149c0 Windows build fixes, bump build number 2014-10-02 17:56:57 +10:00
Mark Watkins
62b4b421f6 Put CSV Export back, step overview barchar segment brightness a bit more 2014-10-02 13:39:37 +10:00
Mark Watkins
51145caa22 Do not save over machines.xml if profiles.xml has a machine section 2014-10-01 14:16:00 +10:00
Mark Watkins
e375f49268 Fix Profile delete not removing row properly 2014-10-01 02:42:11 +10:00
Mark Watkins
7601bdbc98 Show model number instead of machineloader in RX changes list 2014-10-01 02:28:14 +10:00
Mark Watkins
70b54982d8 Only CPAP & APAP ResMed machine modes have EPR 2014-10-01 02:24:55 +10:00
Mark Watkins
a8b5d847f9 Fix for PRS1 model numbers that don't end in P 2014-10-01 02:13:05 +10:00
Mark Watkins
8bde451b89 Misnamed Remstar Pro models. 2014-10-01 01:52:02 +10:00
Mark Watkins
740e4cb2ba Fix Machine::m_availableChannels glitch breaking oximetry statistics 2014-09-30 21:02:35 +10:00
Mark Watkins
358d1969e0 By Pressure pixmap caching cleanup 2014-09-30 20:16:33 +10:00
Mark Watkins
cb051e28f2 Make CreateMachine searchf for lost machine folders 2014-09-30 19:05:29 +10:00
Mark Watkins
b6f13ae0d6 Added Records box back 2014-09-30 18:40:12 +10:00
Mark Watkins
de695e153d PRS1 Oximetery attachment fixes 2014-09-30 15:25:11 +10:00
Mark Watkins
be6e66bdd7 Start on last CPAP/Oximetery day, instead of journal day 2014-09-30 01:43:00 +10:00
Mark Watkins
429fcb64a1 Some machine pixmap stuff, use gzip compatible Summaries.xml, preliminary PRS1 .006 oximetery parser 2014-09-30 00:41:40 +10:00
Mark Watkins
b3f49f1edb Changed QPrinter headers, CMS50H fix, minor overview graph optimisations 2014-09-24 11:42:14 +10:00
Mark Watkins
fc78ebfc16 Show progress bar works when preloading sessions 2014-09-22 18:20:44 +10:00
Mark Watkins
a09308db2c Show better span durations in event flags, reset orders on channel reset 2014-09-22 15:44:55 +10:00
Mark Watkins
f2facb9da9 Add AirSense 10 CSR flags. Fixed summary load order messing up day splitting. 2014-09-22 14:32:15 +10:00
Mark Watkins
55390d9831 Get CMS50IW model string properly 2014-09-19 13:19:11 +10:00