Skip to content

fix: VTimeZone.FromSystemTimeZone for southern-hemisphere time zones - #1013

Merged
axunonb merged 4 commits into
mainfrom
wip/axunonb/pr/vtmezone-southern-hemisphere
Oct 19, 2026
Merged

axunonb merged 4 commits into
mainfrom
wip/axunonb/pr/vtmezone-southern-hemisphere

Conversation

@axunonb

@axunonb axunonb commented Oct 17, 2026

Copy link
Copy Markdown
Collaborator

Implementation as suggested by @daywalker7911

Resolves #1006

@codecov

codecov Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 83.33333% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
Ical.Net/CalendarComponents/VTimeZone.cs 83.3% 1 Missing ⚠️

Impacted file tree graph

@@          Coverage Diff          @@
##            main   #1013   +/-   ##
=====================================
  Coverage   72.2%   72.3%           
=====================================
  Files        137     137           
  Lines       6138    6139    +1     
  Branches    1434    1434           
=====================================
+ Hits        4434    4437    +3     
+ Misses      1246    1244    -2     
  Partials     458     458           
Files with missing lines Coverage Δ
Ical.Net/CalendarComponents/VTimeZone.cs 77.7% <83.3%> (+0.5%) ⬆️

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@axunonb
axunonb requested a review from maknapp October 17, 2026 20:37
Comment thread Ical.Net.Tests/VTimeZoneTest.cs Resolved
return;
}

var tz = VTimeZone.FromSystemTimeZone(tzInfo, new DateTime(2024, 1, 1), false);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could use VTimeZone.FromDateTimeZone(tzId, ...) directly. Both methods just use the TZID to get the NodaTime time zone anyway.

@axunonb
axunonb requested a review from maknapp October 18, 2026 19:17
@maknapp

maknapp commented Oct 18, 2026

Copy link
Copy Markdown
Collaborator

The test method name still says "serialize"

@sonarqubecloud

Copy link
Copy Markdown

@axunonb
axunonb merged commit c2f2f11 into main Oct 19, 2026
12 checks passed
@axunonb
axunonb deleted the wip/axunonb/pr/vtmezone-southern-hemisphere branch October 19, 2026 13:09
axunonb added a commit that referenced this pull request Oct 21, 2026
…v5 (#1014)

fix: VTimeZone.FromSystemTimeZone for southern-hemisphere time zones

Backport #1013 to v5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

VTimeZone.FromSystemTimeZone: wrong DAYLIGHT TZOFFSETTO and DTSTART for southern-hemisphere time zones (still present, see #439)

2 participants