Fix bug with parsing time formats during DST periods.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 25 Mar 2012 00:31:47 +0000 (00:31 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 25 Mar 2012 00:31:47 +0000 (00:31 +0000)
commit4323bbde8deac0023525011d53cf4223dac3f0a1
treef7395fbb84480bc5b0b35d7d43294d7d1c39eeb2
parent14f38667487c308a68ee67d25aee9275ab70aaf0
Fix bug with parsing time formats during DST periods.

wxDateTime::ParseFormat() used todays date as fall back when parsing all
formats, including those involving times, which meant that its results
depended on whether DST was active at the time of the parsing which was
clearly wrong.

Fix this by using a fixed date on which DST is known not to be active as fall
back date.

This fixes unit test failures in DateTimeTestCase::TestTimeFormat() when it
was ran on a DST transition date.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70993 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/datetimefmt.cpp