diff --git a/docs/changes.txt b/docs/changes.txt index e3370e520f..236c2c93ef 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -453,6 +453,7 @@ All: - Added wxLogFormatter to allow customizing wxLog output (Sébastien Gallou). - Added "%z" support to wxDateTime::Format() and Parse() (Armel Asselin). - Add wxHTTP::SetPostBuffer(wxMemoryBuffer) and SetPostText() (Eran Ifrah). +- Fix wrong time zone used in wxDateTime::UNow(). All (GUI): diff --git a/src/common/datetime.cpp b/src/common/datetime.cpp index 90038a27c3..b70f3331fb 100644 --- a/src/common/datetime.cpp +++ b/src/common/datetime.cpp @@ -1102,7 +1102,7 @@ wxDateTime wxDateTime::GetEndDST(int year, Country country) // return the current time with ms precision /* static */ wxDateTime wxDateTime::UNow() { - return wxDateTime(wxGetLocalTimeMillis()); + return wxDateTime(wxGetUTCTimeMillis()); } // the values in the tm structure contain the local time