diff --git a/src/generic/timectrlg.cpp b/src/generic/timectrlg.cpp index 71867c2f35..f4b6b8fd00 100644 --- a/src/generic/timectrlg.cpp +++ b/src/generic/timectrlg.cpp @@ -85,7 +85,11 @@ public: // nice to add support to "%k" and "%l" (hours with leading blanks // instead of zeros) too as this is the most common unsupported case in // practice. +#if wxUSE_XLOCALE m_useAMPM = wxLocale::GetInfo(wxLOCALE_TIME_FMT).Contains("%p"); +#else + m_useAMPM = false; +#endif m_text->Connect (