Thursday, 05 January 2017
  8 Replies
  2.5K Visits
0
Votes
Undo
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!
Monday, 17 July 2017 09:21
·
#191008
Accepted Answer
0
Votes
Undo
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
Thursday, 05 January 2017 06:16
·
#181195
0
Votes
Undo
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
Tuesday, 10 January 2017 03:22
·
#181367
0
Votes
Undo
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?
Tuesday, 10 January 2017 06:20
·
#181370
0
Votes
Undo
Hello,

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

Many thanks
Tony
Saturday, 15 July 2017 14:02
·
#190984
0
Votes
Undo
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?
Monday, 17 July 2017 09:21
·
#191008
Accepted Answer
0
Votes
Undo
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
Monday, 17 July 2017 21:49
·
#191038
0
Votes
Undo
Thank you, Tony!

That solved the problem! I think, the thread can be marked as "resolved".
  • Page :
  • 1
There are no replies made for this post yet.