sabre-io / vobject

:date: The VObject library for PHP allows you to easily parse and manipulate iCalendar and vCard objects

Home Page:http://sabre.io/vobject/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unit test fails for US/Pacific-New timezone

phil-davis opened this issue · comments

That timezone seems to have been "prospectively" created back in 1992 and never used - e.g. see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=815200

It now causes a unit test fail:

There was 1 error:

1) Sabre\VObject\TimeZoneUtilTest::testTimeZoneBCIdentifiers with data set #131 ('US/Pacific-New')
Exception: DateTimeZone::__construct(): Unknown or bad timezone (US/Pacific-New)

/home/phil/git/sabre-io/vobject/tests/VObject/TimeZoneUtilTest.php:174

ERRORS!
Tests: 1709, Assertions: 2627, Errors: 1.

The US/Pacific-New timezone is not listed in the PHP documentation https://www.php.net/manual/en/timezones.others.php

It was removeed from the upstream timezone database here: eggert/tz@284e877