Support » Plugin: amr ical events lists » [Plugin: AmR iCal Events List] Date / Time problem

  • Hi there!
    I am trying to get this eminent plugin to work but without any luck. I get this message:

    Unable to create DateTime object.
    DateTime::__construct() expects parameter 2 to be DateTimeZone, boolean given

    I got my .ics-file outputed from Zimbra and if I check the .ics.file this is what it delivers:

    BEGIN:VEVENT
    UID:81adfd50-761d-4265-9d20-9d62d6efaaca
    SUMMARY:Kal 1 whats the story morning glory?
    LOCATION:Manchester
    ORGANIZER;CN=Les Paul:mailto:les.paul@etm.nu
    DTSTART;TZID=”(GMT+01.00) Amsterdam / Berlin / Bern / Rome / Stockholm / Vie
    nna”:20100831T160000
    DTEND;TZID=”(GMT+01.00) Amsterdam / Berlin / Bern / Rome / Stockholm / Vienn
    a”:20100831T200000
    STATUS:CONFIRMED
    CLASS:PUBLIC
    X-MICROSOFT-CDO-INTENDEDSTATUS:BUSY
    TRANSP:OPAQUE
    X-MICROSOFT-DISALLOW-COUNTER:TRUE
    DTSTAMP:20100827T075954Z
    SEQUENCE:2
    BEGIN:VALARM
    ACTION:DISPLAY
    TRIGGER;RELATED=START:-PT10M
    DESCRIPTION:Reminder
    END:VALARM
    END:VEVENT

    I don´t know where to start my search to find the problem. Could someone help me out here?

Viewing 10 replies - 1 through 10 (of 10 total)
  • Hi again, I got it to work using a google calendar. Is it possible to get it running with zimbra also? because thats what we use in our company.

    And one other thing, is it possible to show the ORGANIZER;CN= name in a column. I have set it to show in colume 4 but nothing shos up. Is´nt this possible?

    Hoping for a reply

    Plugin Author anmari

    (@anmari)

    Hi there. The problem is the tzid. Somehow it has to get translated to a php / WordPress timezone. Does zimbra have an option to specify just one city in the timezone? If you could try some different ones and show me what it puts in the tzid field I could try to figure out a mapping . Eg in this case I could grab the gmt+. But I prefer using more accurate timezones . Gmt offsets are incorrect when there is daylight saving. I am putting a Major update up soon so if you can get back to me asap I can try to include functionality to cope with zimbras timezones

    Plugin Author anmari

    (@anmari)

    Hi forgot to add yes have added pretty formatting of organisers although have yet to encounter all the ways they can appear see next upgrade

    Thank you for your response!

    I actually got a look at it now and I can’t set up Zimbra diffrently from what I done already. So we have to live with all the citiez.

    Could you help me anyway?

    Plugin Author anmari

    (@anmari)

    Hi lespaul,

    I have looked into it and can see why zimbra does this (also windows) Maybe one day, they will get with the rest of the world 😉

    In the meantime I have worked out the logic to deal with those files correctly (imho). The code will be in the next update in a day or so.

    See my notes here:
    http://icalevents.anmari.com/2613-what-every-developer-ought-to-know-about-timezones-wrt-calendar-files/

    Wonderful! I here by dedicate this day to be your day!
    Can’t wait for the update.

    Hi,
    sorry for delayed answer on this on. I have been on vaccation for a while and have not tested this until now. And I still cant get it working with the Zimbra file. Can I e-mail you a live example of the ICS file for you to try it out?

    This is the message I get now:
    Error finding or parsing ical calendar

    Plugin Author anmari

    (@anmari)

    Hi lespaul, absolutely – love to see what is foxing it!
    email ics to anmari@anmari.com

    Plugin Author anmari

    (@anmari)

    Hi lespaul,

    Your file had some timezones like this:

    TZID=”GMT+01.00/+02.00″

    The plugin had allowed for Zimbra TZ’s like this:
    http://wiki.zimbra.com/wiki/Time_Zones_in_ZCS

    # (GMT-01.00) Azores
    # (GMT-01.00) Cape Verde Is.
    # (GMT) Casablanca / Monrovia / Reykjavik
    # (GMT) Greenwich Mean Time – Dublin / Edinburgh / Lisbon / London
    # (GMT+01.00) Amsterdam / Berlin / Bern / Rome / Stockholm / Vienna
    # (GMT+01.00) Belgrade / Bratislava / Budapest / Ljubljana / Prague
    # (GMT+01.00) Brussels / Copenhagen / Madrid / Paris
    ….

    So next version will be a bit cleverer, it will cope with those we found in your file, and now instead of throwing an error if it cannot make sense of the timezone info, it will use the sites wordpress tz, or server tz.

    Check the plugin updates later.

    Thanks again!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘[Plugin: AmR iCal Events List] Date / Time problem’ is closed to new replies.