]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/variant.cpp
_really_ fixed translation messages
[wxWidgets.git] / src / common / variant.cpp
index defe41807fdf1002c87921e4358e9369369da799..48d54c7ec1841cdf6b57e586e678fabeef37a726 100644 (file)
@@ -2244,9 +2244,11 @@ bool wxVariant::Convert(wxDateTime* value) const
 {
     wxString type(GetType());
     if (type == wxT("datetime"))
+    {
         *value = ((wxVariantDataDateTime*)GetData())->GetValue();
-    else
-        return FALSE;
-
-    return TRUE;
+       return TRUE;
+    } 
+    // Fallback to string conversion
+    wxString val;
+    return Convert(&val) && (value->ParseDate(val));
 }