Beispiel #1
0
 public void DateParse_with_format_uses_passed_tz_if_no_default_tz_is_given_and_adjusts_to_utc()
 {
     Assert.AreEqual(
         "Sun, 10 Oct 2010 15:00:00 GMT",
         DekiScriptLibrary.DateParse("2010/10/10 12:00:00", "yyyy/MM/dd HH:mm:ss", CultureInfo.InvariantCulture.IetfLanguageTag, "-3"));
 }
Beispiel #2
0
 public void DateParse_with_format_assumes_utc_if_no_default_tz_is_given()
 {
     Assert.AreEqual(
         "Sun, 10 Oct 2010 12:00:00 GMT",
         DekiScriptLibrary.DateParse("2010/10/10 12:00:00", "yyyy/MM/dd HH:mm:ss", CultureInfo.InvariantCulture.IetfLanguageTag, null));
 }