Recognize BST and GMT as time zones for UK

This doesn't really change anything yet, but is a prerequisite for
implementing better DST handling for the BST time zone.
This commit is contained in:
Vadim Zeitlin
2017-11-30 21:43:27 +01:00
parent 322144299d
commit ef372460be

View File

@@ -861,7 +861,8 @@ wxDateTime::Country wxDateTime::GetCountry()
struct tm *tm = wxLocaltime_r(&t, &tmstruct);
wxString tz = wxCallStrftime(wxS("%Z"), tm);
if ( tz == wxT("WET") || tz == wxT("WEST") )
if ( tz == wxT("WET") || tz == wxT("WEST") ||
tz == wxT("BST") || tz == wxT("GMT") )
{
ms_country = UK;
}