1. 28 12月, 2020 1 次提交
    • S
      Fix Incorrect UTC offset during DST transition (case 1288231) · 9f0ce365
      Scott Ferguson 提交于
      Corrects an issue where for the hour after the DST transition, the
      local UTC offset was listed.  The UTC offset was the DST offset
      instead of the standard time offset.
      
      The runtime library captures this an ambiguous time.  That is
      the local time that occurs twice - once in DST then once in standard
      time.  If DST is an extra 1:00 a.m. offset and ends at 2:00 a.m., 1:00 a.m.
      to 1:59:59.9999.... occurs twice.  First in DST then again in standard
      time.
      
      The classlibs had this incorrect - they did not consider 1:00 a.m. an
      ambiguous time, and considered 2:00 a.m. ambiguous.  However it should
      be reversed.  1:00 a.m. occurs twice, but 2:00 a.m. only occurs once.
      The instance we would hit 2:00 a.m. DST, we instantaneous switch to
      1:00 a.m. standard.
      
      The classlibs were also not recording enough information to record
      which side of DST a local time was.  When converting a time from UTC,
      or using DateTime.Now an internal flag, IsAmbiguousDaylightSavingTime,
      should be set if the time is an ambiguous local time that is on the
      DST side of the transition.  The classlibs were calling
      TimeZone.IsAmbigousTime which has a wider defintion for ambiguous
      time that the IsAmbiguousDaylightSavingTime should have.  It returns
      true for local times on either side of DST.  So a new method
      IsAmbiguousLocalDstFromUtc was added to check this case.
      
      The classlibs were also not checking the IsAmbiguousLocalDstFromUtc
      flag when getting the UTC offset for a local time.  So a check
      was inserted in two locations to correct for that.
      
      Some tests has to be updated to reflect these new definitions of when
      DST starts and ends and which times are ambiguous.  These also account
      for some test changes required by cherry-picked changes to
      TimeZoneInfo.cs where the corresponding test changes were not
      cherry-picked.  Some of those changes where in PR's that updated to
      the CoreFx TimeZoneInfo class.
      
      All these changes have been verified against the behavior of the
      .Net Framework and they match.
      
      Fix case 1288231:
      Mono: Fix incorrect UTC offset during daylight savings time transitions
      9f0ce365
  2. 14 12月, 2017 1 次提交
  3. 24 11月, 2017 1 次提交
  4. 23 11月, 2017 1 次提交
  5. 06 11月, 2017 1 次提交
  6. 14 2月, 2017 1 次提交
    • N
      Fix DateTime.Now and CurrentTimeToUtc during DST transition time (#4172) · 16edc1e5
      Neale Ferguson 提交于
      * During the ambiguous hour .NET will return the DST version of the time whereas mono is returning the base time. Rather than use the transitions array we look up the Adjustment rules (which are created from the transition rules in the first place).
      
      In addition, CurrentTimeToUtc() also has problems around the transition time.
      
      Added test and fixed another.
      
      Fixes #43805.
      
      * Despite the tutorial on msdn about daylight saving time, .NET interprets the 'ambiguous' hour of DST as being DST rather than standard time which is what mono did.
      16edc1e5
  7. 07 2月, 2017 1 次提交
  8. 25 1月, 2017 1 次提交
  9. 15 9月, 2016 1 次提交
    • N
      Fixes time zone issues when running on Windows · c6e0d5d7
      Niklas Therning 提交于
      TimeZoneInfo.GetDaylightChanges() didn't work as expected when run against the
      time zone data available in Windows.
      
      This patch also enables most of the time zone related tests that were
      previously ignored when not run on Unix platforms. Time zone ids will now be
      mapped from tz db time zone names to Windows time zone names when needed so
      that most of the tests can be run on Mono on Windows as well.
      c6e0d5d7
  10. 11 6月, 2016 1 次提交
  11. 23 1月, 2016 1 次提交
  12. 10 4月, 2015 2 次提交
  13. 17 1月, 2015 1 次提交
  14. 03 9月, 2014 1 次提交
  15. 08 8月, 2014 1 次提交
  16. 24 5月, 2014 1 次提交
  17. 24 2月, 2014 1 次提交
    • A
      [Test] Cleaned up how a bunch of tests were ignored · b0032294
      Alexander Köplinger 提交于
      Previously, many tests just had a return statement when the test shouldn't
      be executed (e.g. Unix-only). This made it look like the test was successful
      when in fact it wasn't executed at all.
      Assert.Ignore() is now used instead to correctly exclude those tests.
      b0032294
  18. 10 11月, 2013 1 次提交
  19. 03 11月, 2013 1 次提交
  20. 27 2月, 2013 1 次提交
  21. 26 2月, 2013 1 次提交
  22. 17 4月, 2012 1 次提交
  23. 30 6月, 2009 2 次提交
    • Z
      2009-06-30 Zoltan Varga <vargaz@gmail.com> · eadc6e68
      Zoltan Varga 提交于
      	* *.cs: Convert all tests to new-style nunit classes/methods. Enable
      	some hidden tests.
      
      svn path=/trunk/mcs/; revision=137130
      eadc6e68
    • Z
      2009-06-30 Zoltan Varga <vargaz@gmail.com> · 421b9cc3
      Zoltan Varga 提交于
      	* ObjectTest.cs RandomTest.cs SByteTest.cs SingleTest.cs
      	TimeZoneTest.cs UInt16Test.cs UInt32Test.cs UInt64Test.cs
      	UIntPtrTest.cs ValueTypeTest.cs: Convert all tests to new-style nunit
      	classes/methods. Enable some hidden tests.
      
      svn path=/trunk/mcs/; revision=137121
      421b9cc3
  24. 12 11月, 2007 2 次提交
  25. 06 11月, 2007 1 次提交
  26. 05 11月, 2007 1 次提交
  27. 08 11月, 2006 1 次提交
    • D
      · 32819240
      Dick Porter 提交于
      2006-11-07  Dick Porter  <dick@ximian.com>
      
              * DateTimeTest.cs: TestToString(): Must specify '+0' for GMT.
      
              * TimeZoneTest.cs: Daylight saving ends at 2am in GMT.  (This test
              fails on MS, they return "01/01/0001 00:00:00")
      
      
      
      svn path=/trunk/mcs/; revision=67469
      32819240
  28. 04 9月, 2006 1 次提交
  29. 27 12月, 2005 1 次提交
  30. 24 12月, 2005 1 次提交
  31. 12 2月, 2005 1 次提交
  32. 31 1月, 2005 1 次提交
  33. 10 1月, 2005 1 次提交
  34. 13 4月, 2004 1 次提交
    • D
      · db1335dc
      David Sheldon 提交于
      2004-04-12 David Sheldon <dave-mono@earth.li>
      
      	* TimeZoneTest.cs: Make pass when in "GMT".
      
      This probably isn't the same as MS.NET, but the CET doesn't look like it will
      be either. Where does one alter the strings/dates we see?
      
      svn path=/trunk/mcs/; revision=25371
      db1335dc
  35. 23 6月, 2003 1 次提交
  36. 31 1月, 2003 1 次提交
  37. 21 12月, 2002 1 次提交