예제 #1
0
파일: UtilTests.cs 프로젝트: ytqsl/embc-ess
        public void CanConvertDateToPST()
        {
            var utc9hourAhead = new DateTime(2019, 5, 30, 1, 0, 0);
            var result        = TimeZoneConverter.GetLocalDate(utc9hourAhead);

            Assert.Equal("May-29-2019", result);
        }
예제 #2
0
        public void CanConvertDateToPST()
        {
            var utc9hourAhead = new DateTime(2019, 5, 30, 1, 0, 0);
            var result        = TimeZoneConverter.GetLocalDate(utc9hourAhead);
            var expected      = new DateTime(2019, 5, 29, 16, 0, 0).ToString("MMM-dd-yyyy");

            Assert.Equal(expected, result);
        }