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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user