ics-parser: Getting fatal error with time construct
Hi,
I’m trying to parse a downloaded .ics from iCloud (using public calendar and wget:ing the ics) but I keep getting the following errors:
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string
I’ve tried removing a few of the (old) ical events which seem to cause the hickup, but the problems seems to be with a lot of events.
Example error message:
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (20160523T120000/aMjg0NzQyMDMxMjg0NzQyMBepsf5Xfb3eCoSvMo2mL1qkLACjUXgKOEg0G9GgEq_I/principal/) at position 15 (/): Unexpected character' in /home/dashboard2/vendor/johngrogg/ics-parser/src/ICal/ICal.php:593 Stack trace: #0 /home/dashboard2/vendor/johngrogg/ics-parser/src/ICal/ICal.php(593): DateTime->__construct('20160523T120000...', Object(DateTimeZone)) #1 /home/dashboard2/vendor/johngrogg/ics-parser/src/ICal/ICal.php(1350): ICal\ICal->iCalDateWithTimeZone(Array, 'DTSTART', true) #2 /home/dashboard2/vendor/johngrogg/ics-parser/src/ICal/ICal.php(318): ICal\ICal->processDateConversions() #3 /home/dashboard2/vendor/johngrogg/ics-parser/src/ICal/ICal.php(180): ICal\ICal->initLines(Array) #4 /home/dashboard2/inc_ical.php( in /home/dashboard2/vendor/johngrogg/ics-parser/src/ICal/ICal.php on line 593
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 15 (6 by maintainers)
Yes, working fine now with the latest version.
I think now that I did get out that dev-master-version, but I did it after I had got the first version, so it might not have overwritten the older version? Anyway. Works now. Thanks for all your help!
Sent it now.