X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fdb44eb24f06c828df8c0e88b1d77272a397f41e..b4572569856d405eb80c305674a9aeb8839e87d8:/src/common/datetime.cpp diff --git a/src/common/datetime.cpp b/src/common/datetime.cpp index eecee09de4..4e0ea0fa69 100644 --- a/src/common/datetime.cpp +++ b/src/common/datetime.cpp @@ -1616,6 +1616,7 @@ wxDateTime::Tm wxDateTime::GetTm(const TimeZone& tz) const // construct Tm from these values Tm tm; tm.year = (int)year; + tm.yday = (wxDateTime_t)(dayOfYear - 1); // use C convention for day number tm.mon = (Month)(month - 1); // algorithm yields 1 for January, not 0 tm.mday = (wxDateTime_t)day; tm.msec = (wxDateTime_t)(timeOnly % 1000);