We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If you call calDateTime.AsUtc and then change the TzId property, AsUtc continues to return the old, cached value.
calDateTime.AsUtc
TzId
AsUtc
[Test] public void TestTzidChanges() { var someTime = DateTimeOffset.Parse("2018-05-21T11:35:00-04:00"); var someDt = new CalDateTime(someTime.DateTime) { TzId = "America/New_York" }; var firstUtc = someDt.AsUtc; Assert.AreEqual(someTime.UtcDateTime, firstUtc); someDt.TzId = "Europe/Berlin"; var berlinUtc = someDt.AsUtc; Assert.AreNotEqual(firstUtc, berlinUtc); }
The text was updated successfully, but these errors were encountered:
AsUtc should return the right UTC time associated with the CalDateTim…
84ad5ae
…e, even if the TzId property has changed #387
Release notes and nuspec #387
765d38c
Merge pull request #389 from rianjs/UtcOffsetReset
ad38b8a
nuget package 4.1.1 https://www.nuget.org/packages/Ical.Net
Sorry, something went wrong.
No branches or pull requests
If you call
calDateTime.AsUtc
and then change theTzId
property,AsUtc
continues to return the old, cached value.The text was updated successfully, but these errors were encountered: