Author: rolf
Date: 2007-08-24 13:19:41 -0400 (Fri, 24 Aug 2007)
New Revision: 84814
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DateTimePicker.cs
Log:
* DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
Anyways, let's just follow the lead.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-08-24 17:00:26 UTC (rev 84813)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-08-24 17:19:41 UTC (rev 84814)
@@ -1,3 +1,8 @@
+2007-08-24 Rolf Bjarne Kvinge <[EMAIL PROTECTED]>
+
+ * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
+ Anyways, let's just follow the lead.
+
2007-08-24 Jonathan Pobst <[EMAIL PROTECTED]>
* CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DateTimePicker.cs
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DateTimePicker.cs
2007-08-24 17:00:26 UTC (rev 84813)
+++
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DateTimePicker.cs
2007-08-24 17:19:41 UTC (rev 84814)
@@ -1823,6 +1823,8 @@
return " ";
else if (format.Length == 1)
return date.ToString ("%" + format);
+ else if (format == "yyyyy" || format ==
"yyyyyy" || format == "yyyyyyy" || format == "yyyyyyyy")
+ return date.ToString ("yyyy");
else if (format.Length > 1)
return date.ToString (format);
else
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches