DAVdroid doesn't understand America/Montevideo VTIMEZONE provided by Horde



  • There is a problem in synchronization when connecting to Horde CalDav.

    Calendars are maitained on Horde, and subscriptions are from both Thunderbird (+Lightning), and DAVDroid.

    • Events created using Phone local calendar, all are sincronized to Horde and without problems to Thunderbird.
    • Events created using Thunderbird or with Horde Web got correctly on server, but can't be sincronized with Phone

    Errors seem similar to bitfireAT/davdroid#405

    E/davdroid.RemoteCollection(29964): Ignoring unparseable entity in multi-response
    E/davdroid.RemoteCollection(29964): at.bitfire.davdroid.resource.InvalidResourceException: net.fortuna.ical4j.data.ParserException: Error at line 314:null
    E/davdroid.RemoteCollection(29964): 	at at.bitfire.davdroid.resource.Event.parseEntity(Event.java:147)
    E/davdroid.RemoteCollection(29964): 	at at.bitfire.davdroid.resource.RemoteCollection.multiGet(RemoteCollection.java:112)
    E/davdroid.RemoteCollection(29964): 	at at.bitfire.davdroid.syncadapter.SyncManager.pullNew(SyncManager.java:193)
    E/davdroid.RemoteCollection(29964): 	at at.bitfire.davdroid.syncadapter.SyncManager.synchronize(SyncManager.java:90)
    E/davdroid.RemoteCollection(29964): 	at at.bitfire.davdroid.syncadapter.DavSyncAdapter.onPerformSync(DavSyncAdapter.java:146)
    E/davdroid.RemoteCollection(29964): 	at android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:259)
    E/davdroid.RemoteCollection(29964): Caused by: net.fortuna.ical4j.data.ParserException: Error at line 314:null
    E/davdroid.RemoteCollection(29964): 	at net.fortuna.ical4j.data.CalendarParserImpl.parse(CalendarParserImpl.java:148)
    E/davdroid.RemoteCollection(29964): 	at net.fortuna.ical4j.data.CalendarBuilder.build(CalendarBuilder.java:210)
    E/davdroid.RemoteCollection(29964): 	at net.fortuna.ical4j.data.CalendarBuilder.build(CalendarBuilder.java:191)
    E/davdroid.RemoteCollection(29964): 	at net.fortuna.ical4j.data.CalendarBuilder.build(CalendarBuilder.java:179)
    E/davdroid.RemoteCollection(29964): 	at at.bitfire.davdroid.resource.Event.parseEntity(Event.java:142)
    E/davdroid.RemoteCollection(29964): 	... 5 more
    E/davdroid.RemoteCollection(29964): Caused by: java.lang.NullPointerException
    E/davdroid.RemoteCollection(29964): 	at net.fortuna.ical4j.model.component.Observance.getLatestOnset(Observance.java:169)
    E/davdroid.RemoteCollection(29964): 	at net.fortuna.ical4j.model.TimeZone.getRawOffset(TimeZone.java:181)
    E/davdroid.RemoteCollection(29964): 	at net.fortuna.ical4j.model.TimeZone.<init>(TimeZone.java:69)
    E/davdroid.RemoteCollection(29964): 	at net.fortuna.ical4j.data.CalendarBuilder$ContentHandlerImpl.endComponent(CalendarBuilder.java:261)
    E/davdroid.RemoteCollection(29964): 	at net.fortuna.ical4j.data.CalendarParserImpl$ComponentParser.parse(CalendarParserImpl.java:412)
    E/davdroid.RemoteCollection(29964): 	at net.fortuna.ical4j.data.CalendarParserImpl$ComponentParser.access$1(CalendarParserImpl.java:376)
    E/davdroid.RemoteCollection(29964): 	at net.fortuna.ical4j.data.CalendarParserImpl$PropertyListParser.parse(CalendarParserImpl.java:175)
    E/davdroid.RemoteCollection(29964): 	at net.fortuna.ical4j.data.CalendarParserImpl.parse(CalendarParserImpl.java:125)
    E/davdroid.RemoteCollection(29964): 	... 9 more
    

    Debug log can be found here


  • developer

    There seems to be an error in the time zone definitions so ical4j throws a NullPointerException.

    Can you please post the .ics contents of such an event?



  • Here are the contents of one unsynced event:

    BEGIN:VCALENDAR
    VERSION:2.0
    X-WR-CALNAME:URI
    PRODID:-//The Horde Project//Horde iCalendar Library//EN
    BEGIN:VEVENT
    DTSTART;TZID=America/Montevideo:20150430T130000
    DTEND;TZID=America/Montevideo:20150430T150000
    DTSTAMP:20150428T193234Z
    UID:9cfc5f4f-d70c-4644-9668-1c5766383246
    CREATED:20150424T193035Z
    LAST-MODIFIED:20150427T140051Z
    SUMMARY:Testing Event
    CATEGORIES:Favorites
    LOCATION:Testing
    CLASS:PUBLIC
    STATUS:CONFIRMED
    TRANSP:OPAQUE
    END:VEVENT
    BEGIN:VTIMEZONE
    TZID:America/Montevideo
    BEGIN:STANDARD
    DTSTART:18980628T000000
    TZOFFSETFROM:-0344
    TZOFFSETTO:-0344
    TZNAME:MMT
    END:STANDARD
    BEGIN:STANDARD
    TZOFFSETFROM:-0330
    TZOFFSETTO:-0330
    DTSTART:19231002T000000
    TZNAME:UYHST
    END:STANDARD
    BEGIN:STANDARD
    TZOFFSETFROM:-0330
    TZOFFSETTO:-0330
    TZNAME:UY-T
    END:STANDARD
    BEGIN:STANDARD
    TZOFFSETFROM:-0330
    TZOFFSETTO:-0330
    TZNAME:UYHST
    END:STANDARD
    BEGIN:STANDARD
    TZOFFSETFROM:-0330
    TZOFFSETTO:-0330
    DTSTART:19331029T000000
    RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10;UNTIL=19351027T033000Z
    TZNAME:UYHST
    END:STANDARD
    BEGIN:STANDARD
    TZOFFSETFROM:-0330
    TZOFFSETTO:-0330
    DTSTART:19340331T233000
    RRULE:FREQ=YEARLY;BYMONTH=3;BYMONTHDAY=25,26,27,28,29,30,31;BYDAY=1SA;UNTIL
     =19360330T030000Z
    TZNAME:UY-T
    END:STANDARD
    BEGIN:STANDARD
    TZOFFSETFROM:-0330
    TZOFFSETTO:-0330
    DTSTART:19361101T000000
    TZNAME:UYHST
    END:STANDARD
    BEGIN:STANDARD
    TZOFFSETFROM:-0330
    TZOFFSETTO:-0330
    DTSTART:19370328T000000
    RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=3;UNTIL=19410330T033000Z
    TZNAME:UY-T
    END:STANDARD
    BEGIN:STANDARD
    TZOFFSETFROM:-0330
    TZOFFSETTO:-0330
    DTSTART:19371031T000000
    RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10;UNTIL=19401027T033000Z
    TZNAME:UYHST
    END:STANDARD
    BEGIN:STANDARD
    TZOFFSETFROM:-0330
    TZOFFSETTO:-0330
    DTSTART:19410801T000000
    TZNAME:UYHST
    END:STANDARD
    BEGIN:STANDARD
    TZOFFSETFROM:-0330
    TZOFFSETTO:-0330
    DTSTART:19420101T000000
    TZNAME:UY-T
    END:STANDARD
    BEGIN:DAYLIGHT
    TZOFFSETFROM:-0330
    TZOFFSETTO:-0230
    DTSTART:19421214T000000
    TZNAME:UYST
    END:DAYLIGHT
    BEGIN:STANDARD
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0300
    DTSTART:19420101T000000
    TZNAME:UY-T
    END:STANDARD
    BEGIN:DAYLIGHT
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0200
    DTSTART:19421214T000000
    TZNAME:UYST
    END:DAYLIGHT
    BEGIN:STANDARD
    TZOFFSETFROM:-0200
    TZOFFSETTO:-0300
    DTSTART:19430314T000000
    TZNAME:UY-T
    END:STANDARD
    BEGIN:DAYLIGHT
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0200
    DTSTART:19590524T000000
    TZNAME:UYST
    END:DAYLIGHT
    BEGIN:STANDARD
    TZOFFSETFROM:-0200
    TZOFFSETTO:-0300
    DTSTART:19591115T000000
    TZNAME:UY-T
    END:STANDARD
    BEGIN:DAYLIGHT
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0200
    DTSTART:19600117T000000
    TZNAME:UYST
    END:DAYLIGHT
    BEGIN:STANDARD
    TZOFFSETFROM:-0200
    TZOFFSETTO:-0300
    DTSTART:19600306T000000
    TZNAME:UY-T
    END:STANDARD
    BEGIN:DAYLIGHT
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0200
    DTSTART:19650404T000000
    RRULE:FREQ=YEARLY;BYMONTH=4;BYDAY=1SU;UNTIL=19670402T030000Z
    TZNAME:UYST
    END:DAYLIGHT
    BEGIN:STANDARD
    TZOFFSETFROM:-0200
    TZOFFSETTO:-0300
    DTSTART:19650926T000000
    TZNAME:UY-T
    END:STANDARD
    BEGIN:STANDARD
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0300
    TZNAME:UY-T
    END:STANDARD
    BEGIN:STANDARD
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0300
    TZNAME:UYHST
    END:STANDARD
    BEGIN:STANDARD
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0300
    TZNAME:UY-T
    END:STANDARD
    BEGIN:DAYLIGHT
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0200
    DTSTART:19720424T000000
    TZNAME:UYST
    END:DAYLIGHT
    BEGIN:STANDARD
    TZOFFSETFROM:-0200
    TZOFFSETTO:-0300
    DTSTART:19720815T000000
    TZNAME:UY-T
    END:STANDARD
    BEGIN:STANDARD
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0300
    DTSTART:19740310T000000
    TZNAME:UYHST
    END:STANDARD
    BEGIN:DAYLIGHT
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0200
    DTSTART:19741222T000000
    TZNAME:UYST
    END:DAYLIGHT
    BEGIN:STANDARD
    TZOFFSETFROM:-0200
    TZOFFSETTO:-0300
    DTSTART:19761001T000000
    TZNAME:UY-T
    END:STANDARD
    BEGIN:DAYLIGHT
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0200
    DTSTART:19771204T000000
    TZNAME:UYST
    END:DAYLIGHT
    BEGIN:STANDARD
    TZOFFSETFROM:-0200
    TZOFFSETTO:-0300
    DTSTART:19780401T000000
    TZNAME:UY-T
    END:STANDARD
    BEGIN:DAYLIGHT
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0200
    DTSTART:19791001T000000
    TZNAME:UYST
    END:DAYLIGHT
    BEGIN:STANDARD
    TZOFFSETFROM:-0200
    TZOFFSETTO:-0300
    DTSTART:19800501T000000
    TZNAME:UY-T
    END:STANDARD
    BEGIN:DAYLIGHT
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0200
    DTSTART:19871214T000000
    TZNAME:UYST
    END:DAYLIGHT
    BEGIN:STANDARD
    TZOFFSETFROM:-0200
    TZOFFSETTO:-0300
    DTSTART:19880314T000000
    TZNAME:UY-T
    END:STANDARD
    BEGIN:DAYLIGHT
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0200
    DTSTART:19881211T000000
    TZNAME:UYST
    END:DAYLIGHT
    BEGIN:STANDARD
    TZOFFSETFROM:-0200
    TZOFFSETTO:-0300
    DTSTART:19890312T000000
    TZNAME:UY-T
    END:STANDARD
    BEGIN:DAYLIGHT
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0200
    DTSTART:19891029T000000
    TZNAME:UYST
    END:DAYLIGHT
    BEGIN:STANDARD
    TZOFFSETFROM:-0200
    TZOFFSETTO:-0300
    DTSTART:19900304T000000
    RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=1SU;UNTIL=19920301T030000Z
    TZNAME:UY-T
    END:STANDARD
    BEGIN:DAYLIGHT
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0200
    DTSTART:19901021T000000
    RRULE:FREQ=YEARLY;BYMONTH=10;BYMONTHDAY=21,22,23,24,25,26,27;BYDAY=1SU;UNTI
     L=19911027T030000Z
    TZNAME:UYST
    END:DAYLIGHT
    BEGIN:DAYLIGHT
    TZOFFSETFROM:-0200
    TZOFFSETTO:-0200
    DTSTART:19921018T000000
    TZNAME:UYST
    END:DAYLIGHT
    BEGIN:STANDARD
    TZOFFSETFROM:-0200
    TZOFFSETTO:-0300
    DTSTART:19930228T000000
    TZNAME:UY-T
    END:STANDARD
    BEGIN:DAYLIGHT
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0200
    DTSTART:20040919T000000
    TZNAME:UYST
    END:DAYLIGHT
    BEGIN:STANDARD
    TZOFFSETFROM:-0200
    TZOFFSETTO:-0300
    DTSTART:20050327T020000
    TZNAME:UY-T
    END:STANDARD
    BEGIN:DAYLIGHT
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0200
    DTSTART:20051009T020000
    TZNAME:UYST
    END:DAYLIGHT
    BEGIN:STANDARD
    TZOFFSETFROM:-0200
    TZOFFSETTO:-0300
    DTSTART:20060312T020000
    TZNAME:UY-T
    END:STANDARD
    BEGIN:DAYLIGHT
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0200
    DTSTART:20061001T020000
    RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=1SU
    TZNAME:UYST
    END:DAYLIGHT
    BEGIN:STANDARD
    TZOFFSETFROM:-0200
    TZOFFSETTO:-0300
    DTSTART:20070311T020000
    RRULE:FREQ=YEARLY;BYMONTH=3;BYMONTHDAY=8,9,10,11,12,13,14;BYDAY=1SU
    TZNAME:UY-T
    END:STANDARD
    END:VTIMEZONE
    END:VCALENDAR
    

  • developer

    On my Android device, there's no time zone "America/Montevideo". Can you try another time zone, maybe one that is also present on your Android device? You can try to create an event there and see which time zones are offered.



  • Here is an event created using phone's own calendar application, and pushed to Horde.

    BEGIN:VCALENDAR
    VERSION:2.0
    X-WR-CALNAME:URI
    PRODID:-//The Horde Project//Horde iCalendar Library//EN
    BEGIN:VEVENT
    DTSTART;TZID=America/Montevideo:20150429T180000
    DTEND;TZID=America/Montevideo:20150429T190000
    DTSTAMP:20150428T202847Z
    UID:20150428T202813Z-15488@43b4481375972859
    CREATED:20150428T202820Z
    LAST-MODIFIED:20150428T202820Z
    SUMMARY:Timezone test
    CLASS:PUBLIC
    STATUS:CONFIRMED
    TRANSP:OPAQUE
    END:VEVENT
    BEGIN:VTIMEZONE
    TZID:America/Montevideo
    BEGIN:STANDARD
    DTSTART:18980628T000000
    TZOFFSETFROM:-0344
    TZOFFSETTO:-0344
    TZNAME:MMT
    END:STANDARD
    BEGIN:STANDARD
    TZOFFSETFROM:-0330
    TZOFFSETTO:-0330
    DTSTART:19231002T000000
    TZNAME:UYHST
    END:STANDARD
    BEGIN:STANDARD
    TZOFFSETFROM:-0330
    TZOFFSETTO:-0330
    TZNAME:UY-T
    END:STANDARD
    BEGIN:STANDARD
    TZOFFSETFROM:-0330
    TZOFFSETTO:-0330
    TZNAME:UYHST
    END:STANDARD
    BEGIN:STANDARD
    TZOFFSETFROM:-0330
    TZOFFSETTO:-0330
    DTSTART:19331029T000000
    RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10;UNTIL=19351027T033000Z
    TZNAME:UYHST
    END:STANDARD
    BEGIN:STANDARD
    TZOFFSETFROM:-0330
    TZOFFSETTO:-0330
    DTSTART:19340331T233000
    RRULE:FREQ=YEARLY;BYMONTH=3;BYMONTHDAY=25,26,27,28,29,30,31;BYDAY=1SA;UNTIL
     =19360330T030000Z
    TZNAME:UY-T
    END:STANDARD
    BEGIN:STANDARD
    TZOFFSETFROM:-0330
    TZOFFSETTO:-0330
    DTSTART:19361101T000000
    TZNAME:UYHST
    END:STANDARD
    BEGIN:STANDARD
    TZOFFSETFROM:-0330
    TZOFFSETTO:-0330
    DTSTART:19370328T000000
    RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=3;UNTIL=19410330T033000Z
    TZNAME:UY-T
    END:STANDARD
    BEGIN:STANDARD
    TZOFFSETFROM:-0330
    TZOFFSETTO:-0330
    DTSTART:19371031T000000
    RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10;UNTIL=19401027T033000Z
    TZNAME:UYHST
    END:STANDARD
    BEGIN:STANDARD
    TZOFFSETFROM:-0330
    TZOFFSETTO:-0330
    DTSTART:19410801T000000
    TZNAME:UYHST
    END:STANDARD
    BEGIN:STANDARD
    TZOFFSETFROM:-0330
    TZOFFSETTO:-0330
    DTSTART:19420101T000000
    TZNAME:UY-T
    END:STANDARD
    BEGIN:DAYLIGHT
    TZOFFSETFROM:-0330
    TZOFFSETTO:-0230
    DTSTART:19421214T000000
    TZNAME:UYST
    END:DAYLIGHT
    BEGIN:STANDARD
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0300
    DTSTART:19420101T000000
    TZNAME:UY-T
    END:STANDARD
    BEGIN:DAYLIGHT
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0200
    DTSTART:19421214T000000
    TZNAME:UYST
    END:DAYLIGHT
    BEGIN:STANDARD
    TZOFFSETFROM:-0200
    TZOFFSETTO:-0300
    DTSTART:19430314T000000
    TZNAME:UY-T
    END:STANDARD
    BEGIN:DAYLIGHT
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0200
    DTSTART:19590524T000000
    TZNAME:UYST
    END:DAYLIGHT
    BEGIN:STANDARD
    TZOFFSETFROM:-0200
    TZOFFSETTO:-0300
    DTSTART:19591115T000000
    TZNAME:UY-T
    END:STANDARD
    BEGIN:DAYLIGHT
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0200
    DTSTART:19600117T000000
    TZNAME:UYST
    END:DAYLIGHT
    BEGIN:STANDARD
    TZOFFSETFROM:-0200
    TZOFFSETTO:-0300
    DTSTART:19600306T000000
    TZNAME:UY-T
    END:STANDARD
    BEGIN:DAYLIGHT
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0200
    DTSTART:19650404T000000
    RRULE:FREQ=YEARLY;BYMONTH=4;BYDAY=1SU;UNTIL=19670402T030000Z
    TZNAME:UYST
    END:DAYLIGHT
    BEGIN:STANDARD
    TZOFFSETFROM:-0200
    TZOFFSETTO:-0300
    DTSTART:19650926T000000
    TZNAME:UY-T
    END:STANDARD
    BEGIN:STANDARD
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0300
    TZNAME:UY-T
    END:STANDARD
    BEGIN:STANDARD
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0300
    TZNAME:UYHST
    END:STANDARD
    BEGIN:STANDARD
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0300
    TZNAME:UY-T
    END:STANDARD
    BEGIN:DAYLIGHT
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0200
    DTSTART:19720424T000000
    TZNAME:UYST
    END:DAYLIGHT
    BEGIN:STANDARD
    TZOFFSETFROM:-0200
    TZOFFSETTO:-0300
    DTSTART:19720815T000000
    TZNAME:UY-T
    END:STANDARD
    BEGIN:STANDARD
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0300
    DTSTART:19740310T000000
    TZNAME:UYHST
    END:STANDARD
    BEGIN:DAYLIGHT
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0200
    DTSTART:19741222T000000
    TZNAME:UYST
    END:DAYLIGHT
    BEGIN:STANDARD
    TZOFFSETFROM:-0200
    TZOFFSETTO:-0300
    DTSTART:19761001T000000
    TZNAME:UY-T
    END:STANDARD
    BEGIN:DAYLIGHT
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0200
    DTSTART:19771204T000000
    TZNAME:UYST
    END:DAYLIGHT
    BEGIN:STANDARD
    TZOFFSETFROM:-0200
    TZOFFSETTO:-0300
    DTSTART:19780401T000000
    TZNAME:UY-T
    END:STANDARD
    BEGIN:DAYLIGHT
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0200
    DTSTART:19791001T000000
    TZNAME:UYST
    END:DAYLIGHT
    BEGIN:STANDARD
    TZOFFSETFROM:-0200
    TZOFFSETTO:-0300
    DTSTART:19800501T000000
    TZNAME:UY-T
    END:STANDARD
    BEGIN:DAYLIGHT
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0200
    DTSTART:19871214T000000
    TZNAME:UYST
    END:DAYLIGHT
    BEGIN:STANDARD
    TZOFFSETFROM:-0200
    TZOFFSETTO:-0300
    DTSTART:19880314T000000
    TZNAME:UY-T
    END:STANDARD
    BEGIN:DAYLIGHT
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0200
    DTSTART:19881211T000000
    TZNAME:UYST
    END:DAYLIGHT
    BEGIN:STANDARD
    TZOFFSETFROM:-0200
    TZOFFSETTO:-0300
    DTSTART:19890312T000000
    TZNAME:UY-T
    END:STANDARD
    BEGIN:DAYLIGHT
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0200
    DTSTART:19891029T000000
    TZNAME:UYST
    END:DAYLIGHT
    BEGIN:STANDARD
    TZOFFSETFROM:-0200
    TZOFFSETTO:-0300
    DTSTART:19900304T000000
    RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=1SU;UNTIL=19920301T030000Z
    TZNAME:UY-T
    END:STANDARD
    BEGIN:DAYLIGHT
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0200
    DTSTART:19901021T000000
    RRULE:FREQ=YEARLY;BYMONTH=10;BYMONTHDAY=21,22,23,24,25,26,27;BYDAY=1SU;UNTI
     L=19911027T030000Z
    TZNAME:UYST
    END:DAYLIGHT
    BEGIN:DAYLIGHT
    TZOFFSETFROM:-0200
    TZOFFSETTO:-0200
    DTSTART:19921018T000000
    TZNAME:UYST
    END:DAYLIGHT
    BEGIN:STANDARD
    TZOFFSETFROM:-0200
    TZOFFSETTO:-0300
    DTSTART:19930228T000000
    TZNAME:UY-T
    END:STANDARD
    BEGIN:DAYLIGHT
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0200
    DTSTART:20040919T000000
    TZNAME:UYST
    END:DAYLIGHT
    BEGIN:STANDARD
    TZOFFSETFROM:-0200
    TZOFFSETTO:-0300
    DTSTART:20050327T020000
    TZNAME:UY-T
    END:STANDARD
    BEGIN:DAYLIGHT
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0200
    DTSTART:20051009T020000
    TZNAME:UYST
    END:DAYLIGHT
    BEGIN:STANDARD
    TZOFFSETFROM:-0200
    TZOFFSETTO:-0300
    DTSTART:20060312T020000
    TZNAME:UY-T
    END:STANDARD
    BEGIN:DAYLIGHT
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0200
    DTSTART:20061001T020000
    RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=1SU
    TZNAME:UYST
    END:DAYLIGHT
    BEGIN:STANDARD
    TZOFFSETFROM:-0200
    TZOFFSETTO:-0300
    DTSTART:20070311T020000
    RRULE:FREQ=YEARLY;BYMONTH=3;BYMONTHDAY=8,9,10,11,12,13,14;BYDAY=1SU
    TZNAME:UY-T
    END:STANDARD
    END:VTIMEZONE
    END:VCALENDAR
    


  • TimeZone America/Montevideo is part of the tz database. At least from ical4j documentation i'm assuming it is very well supported.


  • developer

    Android's calendar storage doesn't use ical4j (only DAVdroid does), so it can only process time zones which are known in the Android system.

    Could you please verify that America/Montevideo is not selectable in your calendar app and try a time zone that is present in your Android system?



  • The string displayed for the zone in calendar is 'Uruguay Standard Time'.



  • As I understand, 'America/Montevideo' is understood by android. It should be very easy to create a program that iterates over TimeZone list printing its Name and/or Ids to verify this.


  • developer

    DAVdroid logs contain the output of the function that searches through the Android time zones. Could you please provide logs?



  • Debug logs went on the first comment, on this gist


  • developer

    Sorry, didn't see that. I'm now able to reproduce the issue with our testing device and will have a look.

    Update: Removing the VTIMEZONE definition solves the problem and the event is correctly created in the America/Montevideo timezone, so it's existing in Android.



  • Excellent. I think this other gist is old, but there is already listing android timezone ids and 'America/Montevideo' seems to be there.


  • developer

    It seems like ical4j can't parse the VTIMEZONE given by Horde. The one bundled with ical4j works.

    Do you know if there's something like a VTIMEZONE validator out there? Do you think it's possible that the Horde VTIMEZONE is incorrect or that the problem is caused by ical4j and for what reason?

    VTIMEZONE given by Horde (can't be parsed by ical4j 1.0.6):

    BEGIN:VTIMEZONE
    TZID:America/Montevideo
    BEGIN:STANDARD
    DTSTART:18980628T000000
    TZOFFSETFROM:-0344
    TZOFFSETTO:-0344
    TZNAME:MMT
    END:STANDARD
    BEGIN:STANDARD
    TZOFFSETFROM:-0330
    TZOFFSETTO:-0330
    DTSTART:19231002T000000
    TZNAME:UYHST
    END:STANDARD
    BEGIN:STANDARD
    TZOFFSETFROM:-0330
    TZOFFSETTO:-0330
    TZNAME:UY-T
    END:STANDARD
    BEGIN:STANDARD
    TZOFFSETFROM:-0330
    TZOFFSETTO:-0330
    TZNAME:UYHST
    END:STANDARD
    BEGIN:STANDARD
    TZOFFSETFROM:-0330
    TZOFFSETTO:-0330
    DTSTART:19331029T000000
    RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10;UNTIL=19351027T033000Z
    TZNAME:UYHST
    END:STANDARD
    BEGIN:STANDARD
    TZOFFSETFROM:-0330
    TZOFFSETTO:-0330
    DTSTART:19340331T233000
    RRULE:FREQ=YEARLY;BYMONTH=3;BYMONTHDAY=25,26,27,28,29,30,31;BYDAY=1SA;UNTIL
     =19360330T030000Z
    TZNAME:UY-T
    END:STANDARD
    BEGIN:STANDARD
    TZOFFSETFROM:-0330
    TZOFFSETTO:-0330
    DTSTART:19361101T000000
    TZNAME:UYHST
    END:STANDARD
    BEGIN:STANDARD
    TZOFFSETFROM:-0330
    TZOFFSETTO:-0330
    DTSTART:19370328T000000
    RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=3;UNTIL=19410330T033000Z
    TZNAME:UY-T
    END:STANDARD
    BEGIN:STANDARD
    TZOFFSETFROM:-0330
    TZOFFSETTO:-0330
    DTSTART:19371031T000000
    RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10;UNTIL=19401027T033000Z
    TZNAME:UYHST
    END:STANDARD
    BEGIN:STANDARD
    TZOFFSETFROM:-0330
    TZOFFSETTO:-0330
    DTSTART:19410801T000000
    TZNAME:UYHST
    END:STANDARD
    BEGIN:STANDARD
    TZOFFSETFROM:-0330
    TZOFFSETTO:-0330
    DTSTART:19420101T000000
    TZNAME:UY-T
    END:STANDARD
    BEGIN:DAYLIGHT
    TZOFFSETFROM:-0330
    TZOFFSETTO:-0230
    DTSTART:19421214T000000
    TZNAME:UYST
    END:DAYLIGHT
    BEGIN:STANDARD
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0300
    DTSTART:19420101T000000
    TZNAME:UY-T
    END:STANDARD
    BEGIN:DAYLIGHT
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0200
    DTSTART:19421214T000000
    TZNAME:UYST
    END:DAYLIGHT
    BEGIN:STANDARD
    TZOFFSETFROM:-0200
    TZOFFSETTO:-0300
    DTSTART:19430314T000000
    TZNAME:UY-T
    END:STANDARD
    BEGIN:DAYLIGHT
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0200
    DTSTART:19590524T000000
    TZNAME:UYST
    END:DAYLIGHT
    BEGIN:STANDARD
    TZOFFSETFROM:-0200
    TZOFFSETTO:-0300
    DTSTART:19591115T000000
    TZNAME:UY-T
    END:STANDARD
    BEGIN:DAYLIGHT
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0200
    DTSTART:19600117T000000
    TZNAME:UYST
    END:DAYLIGHT
    BEGIN:STANDARD
    TZOFFSETFROM:-0200
    TZOFFSETTO:-0300
    DTSTART:19600306T000000
    TZNAME:UY-T
    END:STANDARD
    BEGIN:DAYLIGHT
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0200
    DTSTART:19650404T000000
    RRULE:FREQ=YEARLY;BYMONTH=4;BYDAY=1SU;UNTIL=19670402T030000Z
    TZNAME:UYST
    END:DAYLIGHT
    BEGIN:STANDARD
    TZOFFSETFROM:-0200
    TZOFFSETTO:-0300
    DTSTART:19650926T000000
    TZNAME:UY-T
    END:STANDARD
    BEGIN:STANDARD
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0300
    TZNAME:UY-T
    END:STANDARD
    BEGIN:STANDARD
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0300
    TZNAME:UYHST
    END:STANDARD
    BEGIN:STANDARD
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0300
    TZNAME:UY-T
    END:STANDARD
    BEGIN:DAYLIGHT
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0200
    DTSTART:19720424T000000
    TZNAME:UYST
    END:DAYLIGHT
    BEGIN:STANDARD
    TZOFFSETFROM:-0200
    TZOFFSETTO:-0300
    DTSTART:19720815T000000
    TZNAME:UY-T
    END:STANDARD
    BEGIN:STANDARD
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0300
    DTSTART:19740310T000000
    TZNAME:UYHST
    END:STANDARD
    BEGIN:DAYLIGHT
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0200
    DTSTART:19741222T000000
    TZNAME:UYST
    END:DAYLIGHT
    BEGIN:STANDARD
    TZOFFSETFROM:-0200
    TZOFFSETTO:-0300
    DTSTART:19761001T000000
    TZNAME:UY-T
    END:STANDARD
    BEGIN:DAYLIGHT
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0200
    DTSTART:19771204T000000
    TZNAME:UYST
    END:DAYLIGHT
    BEGIN:STANDARD
    TZOFFSETFROM:-0200
    TZOFFSETTO:-0300
    DTSTART:19780401T000000
    TZNAME:UY-T
    END:STANDARD
    BEGIN:DAYLIGHT
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0200
    DTSTART:19791001T000000
    TZNAME:UYST
    END:DAYLIGHT
    BEGIN:STANDARD
    TZOFFSETFROM:-0200
    TZOFFSETTO:-0300
    DTSTART:19800501T000000
    TZNAME:UY-T
    END:STANDARD
    BEGIN:DAYLIGHT
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0200
    DTSTART:19871214T000000
    TZNAME:UYST
    END:DAYLIGHT
    BEGIN:STANDARD
    TZOFFSETFROM:-0200
    TZOFFSETTO:-0300
    DTSTART:19880314T000000
    TZNAME:UY-T
    END:STANDARD
    BEGIN:DAYLIGHT
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0200
    DTSTART:19881211T000000
    TZNAME:UYST
    END:DAYLIGHT
    BEGIN:STANDARD
    TZOFFSETFROM:-0200
    TZOFFSETTO:-0300
    DTSTART:19890312T000000
    TZNAME:UY-T
    END:STANDARD
    BEGIN:DAYLIGHT
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0200
    DTSTART:19891029T000000
    TZNAME:UYST
    END:DAYLIGHT
    BEGIN:STANDARD
    TZOFFSETFROM:-0200
    TZOFFSETTO:-0300
    DTSTART:19900304T000000
    RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=1SU;UNTIL=19920301T030000Z
    TZNAME:UY-T
    END:STANDARD
    BEGIN:DAYLIGHT
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0200
    DTSTART:19901021T000000
    RRULE:FREQ=YEARLY;BYMONTH=10;BYMONTHDAY=21,22,23,24,25,26,27;BYDAY=1SU;UNTI
     L=19911027T030000Z
    TZNAME:UYST
    END:DAYLIGHT
    BEGIN:DAYLIGHT
    TZOFFSETFROM:-0200
    TZOFFSETTO:-0200
    DTSTART:19921018T000000
    TZNAME:UYST
    END:DAYLIGHT
    BEGIN:STANDARD
    TZOFFSETFROM:-0200
    TZOFFSETTO:-0300
    DTSTART:19930228T000000
    TZNAME:UY-T
    END:STANDARD
    BEGIN:DAYLIGHT
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0200
    DTSTART:20040919T000000
    TZNAME:UYST
    END:DAYLIGHT
    BEGIN:STANDARD
    TZOFFSETFROM:-0200
    TZOFFSETTO:-0300
    DTSTART:20050327T020000
    TZNAME:UY-T
    END:STANDARD
    BEGIN:DAYLIGHT
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0200
    DTSTART:20051009T020000
    TZNAME:UYST
    END:DAYLIGHT
    BEGIN:STANDARD
    TZOFFSETFROM:-0200
    TZOFFSETTO:-0300
    DTSTART:20060312T020000
    TZNAME:UY-T
    END:STANDARD
    BEGIN:DAYLIGHT
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0200
    DTSTART:20061001T020000
    RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=1SU
    TZNAME:UYST
    END:DAYLIGHT
    BEGIN:STANDARD
    TZOFFSETFROM:-0200
    TZOFFSETTO:-0300
    DTSTART:20070311T020000
    RRULE:FREQ=YEARLY;BYMONTH=3;BYMONTHDAY=8,9,10,11,12,13,14;BYDAY=1SU
    TZNAME:UY-T
    END:STANDARD
    END:VTIMEZONE
    

    VTIMEZONE bundled by ical4j 1.0.6:

    BEGIN:VTIMEZONE
    TZID:America/Montevideo
    TZURL:http://tzurl.org/zoneinfo/America/Montevideo
    X-LIC-LOCATION:America/Montevideo
    BEGIN:DAYLIGHT
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0200
    TZNAME:UYST
    DTSTART:20061001T020000
    RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=1SU
    X-RADICALE-NAME:America/Montevideo
    END:DAYLIGHT
    BEGIN:STANDARD
    TZOFFSETFROM:-0200
    TZOFFSETTO:-0300
    TZNAME:UYT
    DTSTART:20070311T020000
    RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU
    X-RADICALE-NAME:America/Montevideo
    END:STANDARD
    BEGIN:STANDARD
    TZOFFSETFROM:-034444
    TZOFFSETTO:-034444
    TZNAME:MMT
    DTSTART:18980628T000000
    RDATE:18980628T000000
    X-RADICALE-NAME:America/Montevideo
    END:STANDARD
    BEGIN:STANDARD
    TZOFFSETFROM:-034444
    TZOFFSETTO:-0330
    TZNAME:UYT
    DTSTART:19200501T000000
    RDATE:19200501T000000
    X-RADICALE-NAME:America/Montevideo
    END:STANDARD
    BEGIN:DAYLIGHT
    TZOFFSETFROM:-0330
    TZOFFSETTO:-0300
    TZNAME:UYHST
    DTSTART:19231002T000000
    RDATE:19231002T000000
    RDATE:19241001T000000
    RDATE:19251001T000000
    RDATE:19331029T000000
    RDATE:19341028T000000
    RDATE:19351027T000000
    RDATE:19361101T000000
    RDATE:19371031T000000
    RDATE:19381030T000000
    RDATE:19391029T000000
    RDATE:19401027T000000
    RDATE:19410801T000000
    X-RADICALE-NAME:America/Montevideo
    END:DAYLIGHT
    BEGIN:STANDARD
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0330
    TZNAME:UYT
    DTSTART:19240401T000000
    RDATE:19240401T000000
    RDATE:19250401T000000
    RDATE:19260401T000000
    RDATE:19340401T000000
    RDATE:19350331T000000
    RDATE:19360329T000000
    RDATE:19370328T000000
    RDATE:19380327T000000
    RDATE:19390326T000000
    RDATE:19400331T000000
    RDATE:19410330T000000
    RDATE:19420101T000000
    X-RADICALE-NAME:America/Montevideo
    END:STANDARD
    BEGIN:DAYLIGHT
    TZOFFSETFROM:-0330
    TZOFFSETTO:-0200
    TZNAME:UYST
    DTSTART:19421214T000000
    RDATE:19421214T000000
    X-RADICALE-NAME:America/Montevideo
    END:DAYLIGHT
    BEGIN:STANDARD
    TZOFFSETFROM:-0200
    TZOFFSETTO:-0300
    TZNAME:UYT
    DTSTART:19430314T000000
    RDATE:19430314T000000
    RDATE:19591115T000000
    RDATE:19600306T000000
    RDATE:19650926T000000
    RDATE:19661031T000000
    RDATE:19671031T000000
    RDATE:19720815T000000
    RDATE:19761001T000000
    RDATE:19780401T000000
    RDATE:19800501T000000
    RDATE:19880314T000000
    RDATE:19890312T000000
    RDATE:19900304T000000
    RDATE:19910303T000000
    RDATE:19920301T000000
    RDATE:19930228T000000
    RDATE:20050327T020000
    RDATE:20060312T020000
    X-RADICALE-NAME:America/Montevideo
    END:STANDARD
    BEGIN:DAYLIGHT
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0200
    TZNAME:UYST
    DTSTART:19590524T000000
    RDATE:19590524T000000
    RDATE:19600117T000000
    RDATE:19650404T000000
    RDATE:19660403T000000
    RDATE:19670402T000000
    RDATE:19720424T000000
    RDATE:19771204T000000
    RDATE:19791001T000000
    RDATE:19871214T000000
    RDATE:19881211T000000
    RDATE:19891029T000000
    RDATE:19901021T000000
    RDATE:19911027T000000
    RDATE:19921018T000000
    RDATE:20040919T000000
    RDATE:20051009T020000
    X-RADICALE-NAME:America/Montevideo
    END:DAYLIGHT
    BEGIN:DAYLIGHT
    TZOFFSETFROM:-0300
    TZOFFSETTO:-0230
    TZNAME:UYHST
    DTSTART:19680527T000000
    RDATE:19680527T000000
    RDATE:19690527T000000
    RDATE:19700527T000000
    RDATE:19740310T000000
    X-RADICALE-NAME:America/Montevideo
    END:DAYLIGHT
    BEGIN:STANDARD
    TZOFFSETFROM:-0230
    TZOFFSETTO:-0300
    TZNAME:UYT
    DTSTART:19681202T000000
    RDATE:19681202T000000
    RDATE:19691202T000000
    RDATE:19701202T000000
    X-RADICALE-NAME:America/Montevideo
    END:STANDARD
    BEGIN:DAYLIGHT
    TZOFFSETFROM:-0230
    TZOFFSETTO:-0200
    TZNAME:UYST
    DTSTART:19741222T000000
    RDATE:19741222T000000
    X-RADICALE-NAME:America/Montevideo
    END:DAYLIGHT
    X-RADICALE-NAME:America/Montevideo
    END:VTIMEZONE
    

  • developer

    The problem are the time zone components which don't have DTSTART, TZOFFSETFROM and TZOFFSETTO, for instance:

    BEGIN:STANDARD
    TZOFFSETFROM:-0330
    TZOFFSETTO:-0330
    TZNAME:UY-T
    END:STANDARD
    

    According to RFC 5545 3.6.5, a standardc time zone component must have a DTSTART value. Such time zone component without DTSTART wouldn't make any sense because you can't know when this UY-T time with-0330 offset is defined.

    ical4j expects exactly this (a DTSTART) and throws an exception.

    So, the VTIMEZONE provided by Horde is invalid. I don't know whether it's generated by Horde or uploaded by another client and just taken over by Horde.


  • developer

    Can you please try to contact Horde people and report this issue?



  • I created this bug report. If you like I could post any resolution there on this one.


  • developer

    Thanks - could you please add a link to this issue to the Horde bug report?

    I'll close the issue here.


  • developer

    Unfortunately, it seems that the issue was not reported to Horde, so it occured again. And it will occur again and again…


  • developer



Looks like your connection to Bitfire App Forums was lost, please wait while we try to reconnect.