fix for losing time information (if present) when converting datetime (fixed patch 1113307)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31687 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2074,7 +2074,7 @@ bool wxVariant::Convert(wxDateTime* value) const
|
||||
}
|
||||
// Fallback to string conversion
|
||||
wxString val;
|
||||
return Convert(&val) && (value->ParseDate(val));
|
||||
return Convert(&val) && (value->ParseDateTime(val) || value->ParseDate());
|
||||
}
|
||||
#endif // wxUSE_DATETIME
|
||||
|
||||
|
Reference in New Issue
Block a user