Skip to content
New issue

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

Performance enhancement for solidus-prefixed time zone strings. Added… #205

Merged
merged 1 commit into from
Dec 15, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions release-notes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## Release notes

A listing of what each [Nuget package](https://www.nuget.org/packages/Ical.Net) version represents.

### v2

* 2.2.24: Performance enhancement for solidus-prefixed time zones ([#204](https://github.com/rianjs/ical.net/issues/204)).
* 2.2.23: Bugfix for culture for geographic location serialization. RFC-5545 requires coordinates to use decimal points, not commas, regardless of culture. Correct: `1.2345`. Incorrect: `1,2345`. ([#202](https://github.com/rianjs/ical.net/issues/202))
* 2.2.22: Bugfix for `Event` serialization that always changed the `Duration` to 0. Serialization shouldn't have side effects. ([#199](https://github.com/rianjs/ical.net/issues/199))

Changes weren't systematically tracked before 2.2.22.
2 changes: 1 addition & 1 deletion v2/Ical.Net.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>Ical.Net</id>
<version>2.2.23</version>
<version>2.2.24</version>
<title>Ical.Net</title>
<authors>Rian Stockbower, Douglas Day, M. David Peterson</authors>
<owners>Rian Stockbower</owners>
Expand Down
5 changes: 5 additions & 0 deletions v2/ical.NET/Utility/DateUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ public static DateTimeZone GetZone(string tzId)
return LocalDateTimeZone;
}

if (tzId.StartsWith("/"))
{
tzId = tzId.Substring(1, tzId.Length - 1);
}

var zone = DateTimeZoneProviders.Tzdb.GetZoneOrNull(tzId);
if (zone != null)
{
Expand Down
5 changes: 5 additions & 0 deletions v3/ical.NET/Utility/DateUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ public static DateTimeZone GetZone(string tzId)
return LocalDateTimeZone;
}

if (tzId.StartsWith("/"))
{
tzId = tzId.Substring(1, tzId.Length - 1);
}

var zone = DateTimeZoneProviders.Tzdb.GetZoneOrNull(tzId);
if (zone != null)
{
Expand Down