You need to be logged in to view a user's profile.
  Friday, 06 September 2019
  7 Replies
  2.3K Visits
0
Votes
Undo
Hello!

I'm trying to import an Office365 ical file and keep getting this error:
DateTimeZone::__construct(): Unknown or bad timezone (tzone://Microsoft/Utc)

My timezone in Office365 is: "(UTC+01:00) Amsterdam, Berlin, Bern, Rom, Stockholm, Wien"

In iCalImport.php I used:

$wtzdata["Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna"] = "Europe/Amsterdam";
$wtzdata["(UTC+01 Amsterdam, Berlin, Bern, Rom, Stockholm, Wien"] = "Europe/Berlin";
$wtzdata["Mitteleuropaeische Zeit"] = "Europe/Berlin";
$wtzdata["UTC+01"] = "Microsoft/Utc";
$wtzdata["Microsoft/Utc"] = "Europe/Berlin";

The ical file is: https://outlook.office365.com/owa/calendar/793627907a754b0994c0835e9d90ac7e@stshef.eu/06b4df365b914d52853298f7411baf8417417192149852592007/calendar.ics

Thanks for any idea
Friday, 06 September 2019 12:23
·
#212415
0
Votes
Undo
Hello,

You need to use:

$wtzdata["tzone://Microsoft/Utc"] = "Europe/Berlin";

Good old Microsoft using a completely random timezone! hehe

Many thanks
Tony
Friday, 06 September 2019 15:26
·
#212418
0
Votes
Undo
Wonderful, it works!
Thank you very much
Monday, 09 September 2019 20:08
·
#212455
0
Votes
Undo
Great! You are very welcome.
Tuesday, 26 May 2020 22:22
·
#216338
0
Votes
Undo
I'm sorry to report again with the same error here.
In the past few days, the calendar could again display the error message:

DateTimeZone :: __ construct (): Unknown or bad timezone (Customized Time Zone)

My timezone in Office365 is: "(UTC+01:00) Amsterdam, Berlin, Bern, Rom, Stockholm, Wien"

In iCalImport.php I used:
$ wtzdata ["(Customized Time Zone)"] = "Europe/Berlin";
Monday, 01 June 2020 08:12
·
#216367
0
Votes
Undo
Hello,

So the issue still occurs even though you have added the code into iCalImport.php ?

Can you check if the iCalImport.php contains

<?php at the start

and $ wtzdata

is actually

$wtzdata

If so, can you provided a copy of the iCal Event file so we can test the import?

Many thanks
Tony
Tuesday, 02 June 2020 10:36
·
#216395
0
Votes
Undo
Thanks for the hint.
I was able to fix the problem with the following entry:

$wtzdata ["Customized Time Zone"] = "Europe / Berlin";

Thank you for your support!
Tuesday, 02 June 2020 11:23
·
#216396
0
Votes
Undo
Great to hear! You are very welcome
  • Page :
  • 1
There are no replies made for this post yet.

Members Area

Show your support

Unlike many Joomla calendars we do not charge to download JEvents - please show your support for this project by becoming a member of the JEvents Club Club members get access to early releases, exclusive member support forums, and Silver and Gold members can use many exciting JEvents addons

Your membership will ensure that JEvents continues to be the best events calendar for Joomla.