By chenz2 on Thursday, 05 January 2017
Replies 8
Likes 1
Views 2.2K
Votes 0
Hey there.. I'm trying to import this ical file and keep getting an error: Unknown or bad timezone (US-Eastern)

Can this be fixed? The ical file is: https://solutions.acstechnologies.com/crm/events/1883/main-calendar.ics/

Thanks!
Ok so the issue is down to the way the file is included. Can you change:

include_once
to:
include

on line: 737 of the iCalImport.php file. I have a pull request in to fix this for the next JEvents release.

Many thanks
Tony
·
7 years ago
·
1 Likes
·
0 Votes
·
0 Comments
·
Hello,

You can ad it as a custom timezone create the file here:

/components/com_jevents/libraries/ical_custom_timezones.php

And add:


$wtzdata["US-Eastern"] = "America/New_York";


That should allow it to be imported correctly for you and the future updates of JEvents won't touch the new file :-).

Many thanks
Tony
·
8 years ago
·
1 Likes
·
0 Votes
·
0 Comments
·
Thanks for the idea. I tried it but it didn't do anything unfortunately. The only way it worked is if I added that code into existing file iCallImport.php.

Is there a way around that?
·
8 years ago
·
1 Likes
·
0 Votes
·
0 Comments
·
Hello,

Please can you provide your JEvents Support Info from the JEvents control panel?

Many thanks
Tony
·
8 years ago
·
1 Likes
·
0 Votes
·
0 Comments
·
Hello,

first of all I want to say, that I really like jevents! It's a great extension for joomla!

I have a similar problem to chenz2. I get the error "DateTimeZone::__construct(): Unknown or bad timezone ((UTC+01:00) Amsterdam, Berlin, Bern, Rom, Stockholm, Wien)".

To solve the problem, I inserted the following Code into "iCallImport.php":

$wtzdata["(UTC+01:00) Amsterdam, Berlin, Bern, Rom, Stockholm, Wien"] = "Europe/Berlin";

And it worked.

Then I inserted it to "ical_custom_timezones.php":

<?php
$wtzdata["(UTC+01:00) Amsterdam, Berlin, Bern, Rom, Stockholm, Wien"] = "Europe/Berlin";

And it doesn't work.

The file "ical_custom_timezones.php" is found by the interpreter and - as I dumped "$wtzid"
and "$wtzdata" - everything seems ok but I always get the error.

The cause of that seems to be the "include", but I have no idea what's going wrong! Could you please help me?
·
7 years ago
·
1 Likes
·
0 Votes
·
0 Comments
·
Thank you, Tony!

That solved the problem! I think, the thread can be marked as "resolved".
·
7 years ago
·
1 Likes
·
0 Votes
·
0 Comments
·
View Full Post