Donate Share

iCal4j

Subscribe

Calculation of floating times

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

  1. 2009-11-02 16:56:59 UTC

    Actually the workaround must use the current default timezone, but the offset applied should be the one for the given, floating datetime, as the current time could be in DST and the given time not (or vice versa).

    Hence it should be:

    a) reading from ical4j: date.getTime() + TimeZone.getDefault().getOffset(date.getTime()) b) creating ical4j objects: date.setTime(time - TimeZone.getDefault().getOffset(time))

< 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.