Author: rolf
Date: 2007-07-12 10:31:35 -0400 (Thu, 12 Jul 2007)
New Revision: 81874
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: If there's no part format specifier, return an
empty string.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-07-12 14:21:40 UTC (rev 81873)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-07-12 14:31:35 UTC (rev 81874)
@@ -1,3 +1,8 @@
+2007-07-12 Rolf Bjarne Kvinge <[EMAIL PROTECTED]>
+
+ * DateTimePicker.cs: If there's no part format specifier, return an
+ empty string.
+
2007-07-12 Jonathan Pobst <[EMAIL PROTECTED]>
* FlatButtonAppearance.cs: Throw NotSupportedException for a
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DateTimePicker.cs
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DateTimePicker.cs
2007-07-12 14:21:40 UTC (rev 81873)
+++
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/DateTimePicker.cs
2007-07-12 14:31:35 UTC (rev 81874)
@@ -1823,8 +1823,10 @@
return " ";
else if (format.Length == 1)
return date.ToString ("%" + format);
+ else if (format.Length > 1)
+ return date.ToString (format);
else
- return date.ToString (format);
+ return string.Empty;
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches