]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed the width of the (week day as number) field, should be 1, not 2
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 5 Sep 2002 23:33:42 +0000 (23:33 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 5 Sep 2002 23:33:42 +0000 (23:33 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17009 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/datetime.cpp

index 229cd989bedd4a687b49d51650f003657dfc4666..11966062a4f116374aec1d5b0a59f13efa72668a 100644 (file)
@@ -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