X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b41f79f59ddbb96f847f75f1e1caa45de00bc1f8..0d1cb8cb298ae68754575cb65695ff9567a36899:/src/common/variant.cpp diff --git a/src/common/variant.cpp b/src/common/variant.cpp index 2a0982c6fe..7b2f9dd943 100644 --- a/src/common/variant.cpp +++ b/src/common/variant.cpp @@ -1173,6 +1173,14 @@ wxVariant::wxVariant( void* val, const wxString& name) m_name = name; } +#if wxUSE_DATETIME +wxVariant::wxVariant(const wxDateTime& val, const wxString& name) // Date +{ + m_data = new wxVariantDataDateTime(val); + m_name = name; +} +#endif // wxUSE_DATETIME + #if wxUSE_ODBC wxVariant::wxVariant(const TIME_STRUCT* valptr, const wxString& name) // Date {