You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. I found this promising project 15 minutes ago. I think a found a bug.
I think the library should resolve IANA time zones in a case insensitive way. The following unit tests show the problem.
[TestMethod]
public void TZDB_GetTimeZoneWithIanaId_EuropeParis_WrongCase_ShouldResolve()
{
string input = "europe/paris";
var result = TZDB.DB.GetTimeZoneWithIanaId(input);
Assert.IsNotNull(result);
Assert.AreEqual("Romance Standard Time", result.MicrosoftId);
// FAILED
// threw exception:
// System.Collections.Generic.KeyNotFoundException:
// The given key was not present in the dictionary.
}
[TestMethod]
public void TZDB_GetTimeZoneWithIanaId_EuropeParis_ShouldResolve()
{
string input = "Europe/Paris";
var result = TZDB.DB.GetTimeZoneWithIanaId(input);
Assert.IsNotNull(result);
Assert.AreEqual("Romance Standard Time", result.MicrosoftId);
// PASS
}
Am I wrong?
The text was updated successfully, but these errors were encountered:
hmm. this is a tricky one. If we are taking the lead of for example, java 8, the current behavior of being case sensitive is consistent with that implementation.
Hi. I found this promising project 15 minutes ago. I think a found a bug.
I think the library should resolve IANA time zones in a case insensitive way. The following unit tests show the problem.
Am I wrong?
The text was updated successfully, but these errors were encountered: