compilation fix for !HAVE_STRPTIME case after ParseXXX() changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51108 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -3574,10 +3574,11 @@ wxDateTime::ParseFormat(const wxString& date,
|
|||||||
// common cases
|
// common cases
|
||||||
wxDateTime dt;
|
wxDateTime dt;
|
||||||
|
|
||||||
const wxChar *result = dt.ParseFormat(input, _T("%T"));
|
const wxStringCharType *
|
||||||
|
result = dt.ParseFormat(input, wxS("%T"));
|
||||||
if ( !result )
|
if ( !result )
|
||||||
{
|
{
|
||||||
result = dt.ParseFormat(input, _T("%r"));
|
result = dt.ParseFormat(input, wxS("%r"));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( !result )
|
if ( !result )
|
||||||
@@ -3586,7 +3587,9 @@ wxDateTime::ParseFormat(const wxString& date,
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
haveHour = haveMin = haveSec = true;
|
haveHour =
|
||||||
|
haveMin =
|
||||||
|
haveSec = true;
|
||||||
|
|
||||||
Tm tm = dt.GetTm();
|
Tm tm = dt.GetTm();
|
||||||
hour = tm.hour;
|
hour = tm.hour;
|
||||||
|
Reference in New Issue
Block a user