• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tito10047 / php-calendar / 28450041266

30 Jun 2026 01:59PM UTC coverage: 84.139% (-3.3%) from 87.454%
28450041266

Pull #3

github

tito10047
fix: preserve IANA timezones in ICalExporter, document timezone behaviour

Previously export() always serialised all datetimes as UTC (Z suffix),
silently dropping the original timezone. Recurring events from a parsed
ICS file with TZID=Europe/London would be written back at UTC time,
shifting them by the UTC offset.

New behaviour (formatDtProp helper):
  - UTC datetimes → DTSTART:20241101T120000Z (unchanged)
  - Named IANA timezone → DTSTART;TZID=Europe/London:20241101T120000
  - Numeric offset (+01:00) → normalised to UTC (offset info cannot be
    preserved without a VTIMEZONE block; document this limitation)

Update class docblock to document the three-case timezone strategy and
warn about the numeric-offset limitation so users know to pass a proper
DateTimeZone('Region/City') when timezone fidelity matters.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Pull Request #3: feat!: v2.0 — pure-library core, iCal, recurrence, resource calendar

627 of 745 new or added lines in 12 files covered. (84.16%)

7 existing lines in 1 file now uncovered.

679 of 807 relevant lines covered (84.14%)

7.25 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

81.4
/src/Recurrence/RecurrenceRule.php


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc