#include "wx/wxprec.h"
#ifdef __BORLANDC__
-#pragma hdrstop
+ #pragma hdrstop
#endif
-#include "wx/setup.h"
+#ifndef WX_PRECOMP
+ #include "wx/defs.h"
+#endif
#if wxUSE_TIMEDATE
ostream WXDLLEXPORT & operator << (ostream &os, const wxDate &dt)
{
- return os << (const wxChar *) dt.FormatDate();
+ return os << dt.FormatDate().mb_str();
}
//////////////////////////////////////////////////////////////
void wxDate::julian_to_wday (void)
{
+ // Correction by Peter Stadel <peters@jetcity.com>
+ day_of_week = ((julian - 2) % 7L);
+/*
day_of_week = (int) ((julian + 2) % 7 + 1);
+*/
}
void wxDate::julian_to_mdy ()