svn path=/trunk/mcs/; revision=159986
+2010-07-07 Veerapuram Varadhan <vvaradhan@novell.com>
+
+ * TdsComm.cs (Append[DateTime]): Ugh.. ugh.. final fix for handling MinValue for DateTime.
+
2010-07-07 Veerapuram Varadhan <vvaradhan@novell.com>
** Fixes #609109 - DateTime part
if (epoch > t) {
// If t.Hour is > 0, days points to the next day and hence,
// we move it back by a day - otherwise, no change
- if (t.Hour > 0) {
- days--;
- hours = t.Hour;
- } else {
- hours = 12;
- }
-
+ days = t.Hour > 0 ? days-1: days;
+ hours = t.Hour;
minutes = t.Minute;
secs = t.Second;
msecs = t.Millisecond;