diff --git a/include/wx/datetime.h b/include/wx/datetime.h index b990cfb508..5aac2b16d4 100644 --- a/include/wx/datetime.h +++ b/include/wx/datetime.h @@ -1108,11 +1108,11 @@ public: return date + (end - datestr.begin()); } - const wchar_t *ParseFormat(const wchar_t *date, - const wchar_t *format = wxDefaultDateTimeFormat, - const wxDateTime& dateDef = wxDefaultDateTime) + const char *ParseFormat(const char *date, + const wxString& format = L"%c", + const wxDateTime& dateDef = wxDefaultDateTime) { - return ParseFormat(date, wxString(format), dateDef); + return ParseFormat(wxString(date), format, dateDef); } const char *ParseFormat(const char *date,