path: root/src/
diff options
authorEdward Welbourne <>2015-11-04 10:26:37 +0100
committerEdward Welbourne <>2016-01-12 09:23:55 +0000
commit81858bf1722081d99fdea72f55e67c04c5bb3d92 (patch)
tree316edb539655dc3adefeca701012d9446f28aa38 /src/
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 <>
Diffstat (limited to 'src/')
0 files changed, 0 insertions, 0 deletions