diff options
author | Janne Anttila <janne.anttila@digia.com> | 2009-10-08 05:06:02 (GMT) |
---|---|---|
committer | Janne Anttila <janne.anttila@digia.com> | 2009-10-08 09:40:23 (GMT) |
commit | 2f7d1318d2dc63322a468d8c301ae718eaba0d03 (patch) | |
tree | d072691ed9fe53bad51cb9b12b1e10f93c948f03 /tests/auto | |
parent | 6612377889c6bff3dfb154dca268c8e6ea48ca8b (diff) | |
download | Qt-2f7d1318d2dc63322a468d8c301ae718eaba0d03.zip Qt-2f7d1318d2dc63322a468d8c301ae718eaba0d03.tar.gz Qt-2f7d1318d2dc63322a468d8c301ae718eaba0d03.tar.bz2 |
Workaround for OpenC daylight saving cache issue when using localtime_r.
OpenC incorrectly caches DST information between localtime_r
calls, i.e. if previous call to localtime_r has been called for DST
affected date, also the second call will be affected by DST even
the date is such that DST should not be applied.
The workaround is to call mktime with non-DST affected date before
calling localtime_r. mktime call resets the OpenC internal DST cache
to right value and localtime_r will return correct values.
This commit can be reverted once Open C bug 9525 has been reverted.
AutoTest: Fixes tst_QDateTime::totime_t
Reviewed-by: Aleksandar Sasha Babic
Diffstat (limited to 'tests/auto')
0 files changed, 0 insertions, 0 deletions