X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/509201463dbd3bce8aff762c664b111a8f2c3412..9f50f9f1a161184359b7ee002d4f6bb7ecd8f04c:/src/common/date.cpp diff --git a/src/common/date.cpp b/src/common/date.cpp index c8cd9dda8b..ec7f8d549f 100644 --- a/src/common/date.cpp +++ b/src/common/date.cpp @@ -282,7 +282,7 @@ bool WXDLLEXPORT operator != (const wxDate &dt1, const wxDate &dt2) ostream WXDLLEXPORT & operator << (ostream &os, const wxDate &dt) { - return os << (const wxChar *) dt.FormatDate(); + return os << dt.FormatDate().mb_str(); } ////////////////////////////////////////////////////////////// @@ -291,7 +291,11 @@ ostream WXDLLEXPORT & operator << (ostream &os, const wxDate &dt) void wxDate::julian_to_wday (void) { + // Correction by Peter Stadel + day_of_week = ((julian - 2) % 7L); +/* day_of_week = (int) ((julian + 2) % 7 + 1); +*/ } void wxDate::julian_to_mdy ()