WordPress.org

Ready to get started?Download WordPress

Forums

amr ical events lists
[Plugin: AmR iCal Events List] Date / Time problem (11 posts)

  1. lespaul
    Member
    Posted 3 years ago #

    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?

  2. lespaul
    Member
    Posted 3 years ago #

    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

  3. anmari
    Member
    Plugin Author

    Posted 3 years ago #

    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

  4. anmari
    Member
    Plugin Author

    Posted 3 years ago #

    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

  5. lespaul
    Member
    Posted 3 years ago #

    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?

  6. anmari
    Member
    Plugin Author

    Posted 3 years ago #

    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/

  7. lespaul
    Member
    Posted 3 years ago #

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

  8. lespaul
    Member
    Posted 3 years ago #

    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

  9. anmari
    Member
    Plugin Author

    Posted 3 years ago #

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

  10. anmari
    Member
    Plugin Author

    Posted 3 years ago #

    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.

  11. lespaul
    Member
    Posted 3 years ago #

    Thanks again!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic