From ef372460bed62334c4daab68e3ae327a3f959642 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 30 Nov 2017 21:43:27 +0100 Subject: [PATCH] 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. --- src/common/datetime.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/datetime.cpp b/src/common/datetime.cpp index 2696551520..da0a512299 100644 --- a/src/common/datetime.cpp +++ b/src/common/datetime.cpp @@ -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; }