|author||Edward Welbourne <email@example.com>||2015-11-04 10:26:37 +0100|
|committer||Edward Welbourne <firstname.lastname@example.org>||2016-01-12 09:23:55 +0000|
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 <email@example.com>
Diffstat (limited to 'src/src.pro')
0 files changed, 0 insertions, 0 deletions