From: Vadim Zeitlin Date: Thu, 5 Sep 2002 23:33:42 +0000 (+0000) Subject: fixed the width of the (week day as number) field, should be 1, not 2 X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/59d04dff037f66e9e73b389de72835211f5f0bcd fixed the width of the (week day as number) field, should be 1, not 2 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17009 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/datetime.cpp b/src/common/datetime.cpp index 229cd989be..11966062a4 100644 --- a/src/common/datetime.cpp +++ b/src/common/datetime.cpp @@ -1901,6 +1901,10 @@ wxString wxDateTime::Format(const wxChar *format, const TimeZone& tz) const fmt = _T("%03d"); break; + case _T('w'): // week day as number has only one + fmt = _T("%d"); + break; + default: // it's either another valid format specifier in which case // the format is "%02d" (for all the rest) or we have the