ID

Uploaded

Status

Description

Work Items

Action

3701
by darkman666
Aug 27, 2009
12:46 PM

Applied

Added to GetFormat(DateTime dt) functionality for such formats as MSK/MSD (saving time format after slash symbol, standard time - before slash)


Applied Oct 20, 2013: Commit 87582

Download

9207
by muxa
Apr 19, 2011
12:55 PM

Applied

Fixed bug with Daylight Saving Time issues (transition-related). Tested against Pacific/Auckland time zone.
Test:
[Test]
public void TestPublicDomainZoneInfo_NZ()
{
Database.LoadFiles(Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().CodeBase).Substring(6), "tzdata"));
Zone zone = Database.GetZone("Pacific/Auckland");

Assert.AreEqual(new DateTime(2009, 09, 27, 03, 00, 0),
zone.ConvertToLocal(new DateTime(2009, 09, 26, 14, 00, 00, DateTimeKind.Utc)));
Assert.AreEqual(new DateTime(2010, 04, 04, 02, 00, 0),
zone.ConvertToLocal(new DateTime(2010, 04, 03, 14, 00, 00, DateTimeKind.Utc)));

//When DST is on at 2am on 2009-09-27 time gets moved to 3am - i.e. time between 2am and 3am is invalid
Assert.AreEqual(new DateTime(2009, 09, 26, 14, 00, 0),
zone.ConvertToUtc(new DateTime(2009, 09, 27, 03, 00, 00)));
Assert.AreEqual(new DateTime(2009, 09, 26, 14, 00, 0),
zone.ConvertToUtc(new DateTime(2009, 09, 27, 02, 00, 00)));

Assert.AreEqual(new DateTime(2009, 09, 26, 14, 00, 0),
zone.ConvertToLocal(new DateTime(2009, 09, 26, 02, 00, 00, DateTimeKind.Utc)));
}

Also fixed a little but with ConvertToLocal returning date of Utc Kind


Applied Oct 20, 2013: Commit 87581

5609
8501

Download

10855
by ldelmestre
Nov 17, 2011
8:28 AM

Declined

Whith the latest version of the files (http://www.iana.org/time-zones) Time Zone Data v. 2011n (Released 2 November 2011) the method public static DateTime ConvertToDateTime(string token, int year, int month) in Database.cs doesn't parse "Sun>=2": "Sun>=15": "Sun>=16":


Declined Oct 20, 2013: I've applied the fix from https://zoneinfo.codeplex.com/workitem/7494 instead - please post a new issue if this doesn't work for you.

View All
  • 1-3 of 3 Patches
    • Previous
    • 1
    • Next
    • Showing
    • All
    • Patches