+2007-11-01 Atsushi Enomoto <atsushi@ximian.com>
+
+ * DateTime.cs : in roundtrip mode, 'Z' should turn the tick value to
+ utc time and should not result in different ticks.
+ Fixed bug #338064.
+
2007-10-30 Miguel de Icaza <miguel@novell.com>
* UInt32.cs (Parse): Use Jeff Stedfast's parsing code which is
+2007-11-01 Atsushi Enomoto <atsushi@ximian.com>
+
+ * DateTimeTest.cs : fixed bug #338064.
+
2007-10-27 Zoltan Varga <vargaz@gmail.com>
* TypeTest.cs (InvokeMember_VarArgs): Enable this test.
Assert.AreEqual ("2000-01-01T00:00:00.0000000+09:00".Length, DateTime.SpecifyKind (
new DateTime (2000, 1, 1), DateTimeKind.Local).ToString ("o").Length, "#3");
}
+
+ [Test]
+ [Category ("NotDotNet")]
+ public void RundtripKindPattern ()
+ {
+ // only 2.0 supports 'K'
+ string format = "yyyy-MM-ddTHH:mm:ss.FFFK";
+ CultureInfo ci = CultureInfo.CurrentCulture;
+ DateTime dt = DateTime.UtcNow;
+ string s = dt.ToString (format);//"2007-11-01T10:03:48.39Z";
+ DateTime d1 = DateTime.ParseExact (s, format, ci);
+ Assert.AreEqual (dt.Ticks, d1.Ticks, "#1");
+ Assert.AreEqual (DateTimeKind.Utc, d1.Kind, "#2");
+ }
#endif
}
}