By bobby on Tuesday, 05 December 2017
Replies 20
Likes 0
Views 1.7K
Votes 0
Hi,

I have setup an link to an Microsoft Outlook calendar using ical together with a scheduled job.

This works perfectly for "all day" events but fails when times are introduced to an event with the following error:
Error: 0 - DateTimeZone::__construct(): Unknown or bad timezone ((UTC+00)

Is this the normal or am I missing something?

Regards,

Bob
Can you provide a copy of your iCal, here so we can see the timezone being set? I suspect you will need to add a custom timezone. see:

https://www.jevents.net/discussions/ical-import-bad-timezone

On how to add a custom timezone.

Many thanks
Tony
·
6 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Tony,
Thanks for the quick response, however what needs to go into the file

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

based on my data:

TZID:(UTC+00:00) Dublin\, Edinburgh\, Lisbon\, London
TZID="(UTC+00:00) Dublin, Edinburgh, Lisbon, London":20171205T000000
TZID="(UTC+00:00) Dublin, Edinburgh, Lisbon, London":20171205T235959

Regards,

Bob
·
6 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
I would suggest:

$wtzdata["(UTC+00:00) Dublin, Edinburgh, Lisbon, London"] = 'Europe/London';
·
6 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

I have tried with the suggestion described above

$wtzdata["(UTC+00:00) Dublin, Edinburgh, Lisbon, London"] = 'Europe/London';
$wtzdata["(UTC+00)"] = 'Europe/London';


and still get the error:

DateTimeZone::__construct(): Unknown or bad timezone ((UTC+00)

Any ideas?

Regards,

Bob
·
6 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Bob,

Please provide a copy of your ical file.

Many thanks
Tony
·
6 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Tony,
As requested.
Regards,
Bob
·
6 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Tony,
Please find the JEvents Support Info in the Site Details.
Regards,
Bob
·
6 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Try:


$wtzdata["(UTC+00:00) Dublin\, Edinburgh\, Lisbon\, London"] = 'Europe/London';
·
6 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Tony,

I'm now getting

DateTime::__construct(): Failed to parse time string (00) Dublin, Edinburgh, Lisbon, London"20180129T080000) at position 0 (0): Unexpected character

Regards,

Bob
·
6 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Where are you generating this Export from? Is it a manually generated file?
·
6 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Tony,

Outlook 2016 on my window 10 laptop, part of office 365.

Regards,

Bob
·
6 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Tony,
Please find the details of the website.
Regard,
Bob
·
6 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
The credentials don't work to login (can you check them).

What you tried already


$wtzdata["(UTC+00:00) Dublin, Edinburgh, Lisbon, London"] = 'Europe/London';

Should work
·
6 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Geraint,

I have updated the user details to that as advised previously.
Attached is a file with the codes I have tried.

Regards,

Bob
·
6 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Tony/Geraint,

Have you had any luck in identifying the problem of updating a JEvents calendar from Outlook 365.

Regards,

Bob
·
6 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
I imported your calendar from above using this file with no problems

I couldn't check your site since I was unable to install a file component like eXtplorer

Please make sure this file is unzipped and placed in components/com_jevents/libraries/

p.s. you need to URGENTLY update your version of Joomla - the version you have is dangerously out of date
·
6 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Geriant,
I uploaded the zip file and extracted the php file.
Unfortunately I'm still getting the same error:

0 - An error has occurred.
DateTime::__construct(): Failed to parse time string (00) Dublin, Edinburgh, Lisbon, London"20180129T080000) at position 0 (0): Unexpected character

I have also given the site details.

Regards,

Bob
·
6 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
It should work

Can you upgrade Joomla and JEvents to the latest versions and then if the problem isn't resolved I'll take another look for you

Geraint
·
6 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Geraint,

Thank you for your help, that all works perfectly now.
Could you let me know what the correct syntax for a schedule job would be please, as this doesn't work?

Task Type: Fetch URL
URL: http://www.xxx.yyy.zz/index.php?option=com_jevents&icsid=6;task=icals.refresh

Regards,

Bob
·
6 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Geraint,

It's all working now.
http://www.xxx.yyy.zz/index.php?option=com_jevents&icsid=6&task=icals.reload

Thanks for your help.

Regards,

Bob
·
6 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post