Donate Share

iCal4j

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

Calculation of floating times

You are viewing a single message from this topic. View all messages.

  1. 2009-07-10 14:22:53 UTC
    I created a workaround and noticed that one has to take care of this problem also when creating an ical4j DateTime object, since it will add the default timezone for floating times when formatting the value in Iso8601.toString().

    Thus the workaround is:

    a) reading from ical4j: date.getTime() + current default offset
    b) creating ical4j objects: date.setTime(time - current default offset)

    That works for me and does a proper round trip (ics file -> import -> my repository -> export -> ics file).

    Regards,
    Alex
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.