You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When parsing an event with a inline timezone, earlier than 1970, the parser fails. DTSTART;TZID=America/Los_Angeles:00011212T020000
Steps to Reproduce:
Parse attached file.
Error returned: The timezone could not be found in the database
Notes
File: ICal.php
Line: 661
if less than year, parse raw string, even though it should continue on to next if statement
// A Unix timestamp cannot represent a date prior to 1 Jan 1970$year = $date[2];
if ($year <= self::UNIX_MIN_YEAR) {
$dateTime = new \DateTime($icalDate, new \DateTimeZone($this->defaultTimeZone));
} else {
if ($forceTimeZone) {
...
The text was updated successfully, but these errors were encountered:
u01jmg3
changed the title
Parse failure on dates before 1970 with inline timezone
Parse failure on dates before 1970 with an inline timezone
Aug 29, 2017
invalid_date.txt
7.1.8
America/Los_Angeles
dev-master
Description of the Issue:
When parsing an event with a inline timezone, earlier than 1970, the parser fails.
DTSTART;TZID=America/Los_Angeles:00011212T020000
Steps to Reproduce:
Parse attached file.
Error returned:
The timezone could not be found in the database
Notes
File:
ICal.php
Line:
661
The text was updated successfully, but these errors were encountered: