summaryrefslogtreecommitdiffstats
path: root/mkspecs/features/qt_module_headers.prf
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@theqtcompany.com>2015-11-04 10:26:37 +0100
committerEdward Welbourne <edward.welbourne@theqtcompany.com>2016-01-12 09:23:55 +0000
commit81858bf1722081d99fdea72f55e67c04c5bb3d92 (patch)
tree316edb539655dc3adefeca701012d9446f28aa38 /mkspecs/features/qt_module_headers.prf
parent08775e4bd745276bcc6a5a9fdc4bed7aca225112 (diff)
Don't pretend we know what DST to use for an offset date.
When QDateTime::addDate() and friends sanitize their end-state, they were using the DST status of their start-state (if known) to control it. This lead to misguided results and, in particular, inconsistent results given that a raw-constructed QDateTime comes into being ignorant of its DST, while a .toLocalTime() one knows its DST. Furthermore, the code to do this was triplicated, tricky and poorly explained. So pull it out into a local static function and explain what it's doing, and why, more clearly and only once. Task-number: QTBUG-49008 Change-Id: Ia4bb3c5e9267fff8bb963ea705267998218ed623 Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@theqtcompany.com>
Diffstat (limited to 'mkspecs/features/qt_module_headers.prf')
0 files changed, 0 insertions, 0 deletions