* DateTime.cs : When hour format is "hh", MS.NET (maybe incorrectly)
allows 12, that should not be accepted (13 is rejected) and
interpreted as 0. This fixes bug 63376.
svn path=/trunk/mcs/; revision=32507
+2004-08-19 Atsushi Enomoto <atsushi@ximian.com>
+
+ * DateTime.cs : When hour format is "hh", MS.NET (maybe incorrectly)
+ allows 12, that should not be accepted (13 is rejected) and
+ interpreted as 0. This fixes bug 63376.
+
2004-08-17 Sebastien Pouliot <sebastien@ximian.com>
* Version.cs: Fixed Clone so we can use it on versions with only
num = 1;
}
- if (hour >= 12)
+ if (hour > 12)
return false;
+ if (hour == 12)
+ hour = 0;
break;
case 'H':