X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8cc00d5fcafccb2fc2c3fa2eda78651a5634aab2..c7382f913cc2d3ddcc782b876574c58865e7d842:/src/common/datetime.cpp diff --git a/src/common/datetime.cpp b/src/common/datetime.cpp index 2b208928df..3ac780395f 100644 --- a/src/common/datetime.cpp +++ b/src/common/datetime.cpp @@ -817,10 +817,12 @@ wxString wxDateTime::GetWeekDayName(wxDateTime::WeekDay wday, { wxCHECK_MSG( wday != Inv_WeekDay, _T(""), _T("invalid weekday") ); - // take some arbitrary Sunday + // take some arbitrary Sunday (but notice that the day should be such that + // after adding wday to it below we still have a valid date, e.g. don't + // take 28 here!) tm tm; InitTm(tm); - tm.tm_mday = 28; + tm.tm_mday = 21; tm.tm_mon = Nov; tm.tm_year = 99;