// wxInvalidDateTime)
class WXDLLEXPORT wxDateTime;
-WXDLLEXPORT_DATA(extern wxDateTime&) wxDefaultDateTime;
+WXDLLEXPORT_DATA(extern const wxDateTime&) wxDefaultDateTime;
#define wxInvalidDateTime wxDefaultDateTime
// ----------------------------------------------------------------------------
// result of timezone shift)
// ------------------------------------------------------------------------
- // is the date valid (TRUE even for non initialized objects)?
- inline bool IsValid() const { return this != &wxInvalidDateTime; }
+ // is the date valid? Note that this will return TRUE for non
+ // initialized objects but FALSE if *this == wxInvalidDateTime
+ inline bool IsValid() const { return m_time != wxInvalidDateTime.m_time; }
// get the broken down date/time representation in the given timezone
//