Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DateTimeZone::__construct(): Unknown or bad timezone #72

Open
erkanpulat opened this issue Apr 11, 2023 · 0 comments
Open

DateTimeZone::__construct(): Unknown or bad timezone #72

erkanpulat opened this issue Apr 11, 2023 · 0 comments

Comments

@erkanpulat
Copy link

Issue: Invalid timezone error

Observations:

Two invalid timezone entries were encountered in our system:

  1. DateTimeZone::__construct(): Unknown or bad timezone (Argentina/Buenos_Aires)
  2. DateTimeZone::__construct(): Unknown or bad timezone (Indiana/Indianapolis)

Upon examining the IcalParser.php file, I noticed that the toTimezone function searches for a matching value within the windowsTimezones array. If it cannot find a match, it proceeds to use the $zone value directly. However, the subsequent operations involving new DateTimeZone($value) do not accept the value returned by this function. It seems that additional entries may need to be added to the windowsTimezones file.

Any help or guidance on resolving this issue would be greatly appreciated. Thank you in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant