Fix TZ handling in wxDateTime::ParseRfc822Date().

When the TZ offset specified in the RFC 822 string was equal to the local TZ
offset but the date fell in the DST period, the result was one hour off.

Fix this by converting the date to the UTC explicitly, and then converting it
back to the local TZ to ensure that the DST is taken into effect.

See #15370.
This commit is contained in:
Vadim Zeitlin
2015-02-26 00:55:33 +01:00
parent 7ffa1c4d3a
commit c477605bda
2 changed files with 9 additions and 1 deletions

View File

@@ -580,6 +580,7 @@ Major new features in this release
Unix:
- Fix wxIPaddress::Hostname() failing if /etc/hosts contained very long names.
- Fix wxDateTime::ParseRfc822Date() for some TZ/DST combinations.
All (GUI):