-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Third Party Issue
-
Affects Version/s: 14
-
Fix Version/s: None
-
Component/s: Calendar
-
Labels:None
-
Sprint:Sprint 4!, Sprint 5!
-
ToDo:
-
Asterisk Version:13.22.0
-
Distro Version:14.0.8.4
-
Distro:FreePBX Distro
"There was an error fetching the events" error in orange bar at the top of browser thrown when trying to see event created in local or remote calendar set to timezone America/Argentina/Cordoba
Debug from browser console
error:
file: "/var/www/html/admin/modules/calendar/vendor/om/icalparser/src/IcalParser.php"
line: 181
message: "DateTimeZone::__construct(): Unknown or bad timezone (Argentina/Cordoba)"
type: "Exception"
Steps to reproduce the issue for local calendar
1.- Create local calendar with timezone Argentina/Cordoba (or any American timezone that has character "/" in its name)
2.- Create new event on this calendar
3.- At this time the calendar should show the new event, but the event is not shown
4.- Reload calendar page => error thrown
Steps to reproduce the issue for remote iCal calendar
1.- Create Remote iCal Calendar that points to Google calendar with "Argentina Standard Time - Cordoba"
2.- Click "Update from source" => error thrown
Relevant information:
Calendar module version: 14.0.2.16
For a local calendar, this error occurs with any of the American timezones that have a "/" on their name, like all Argentina, Indiana, Kentucky and North_Dakota timezones, maybe the error is related to the character "/" or to the fact that the timezone definition file is inside its own folder under /usr/share/zoneinfo/America/
Probably this will also happen with any timezone that either has the character "/" on its name or any timezone that has multiple timezone definition files under its own folder.
For Remote iCal calendar, this error also occurs with calendars set to any of the timezones that translate to a timezone that has the character "/" on its name, i.e. any of the timezones already described for local calendar.
I have verified that this error never happens for local or remote ical calendars with timezones that do not have the character "/" on their names. I specifically tested New York and Santiago timezones, called "New_York" and "Santiago" for local calendar and "Eastern Time - New York" and "Chile Time" on Google calendar.
At this point one would assume that the error is somehow related to the character "/" on the timezone name.
My server is set to timezone Argentina/Cordoba and the system time is correctly shown both on FreePBX web admin page and linux console
The full timezone name is America/Argentina/Cordoba. All the different argentinean timezones are inside directory /usr/share/zoneinfo/America/Argentina