I'm having problems getting Google to import a file w/ EXDATE values. It seems they want to see something like this:
but iCal4J outputs this:
I've tried setting the timezone on the datetime itself, the DateTime list, and the exdata. I've also setUTC to false. But I can't get TZID to display (it displays fine in the event's DTSTART)
Does anyone have any ideas?
I have created a test to demonstrate how this should work:
final TimeZoneRegistry tr = TimeZoneRegistryFactory.getInstance().createRegistry();
final TimeZone tz = tr.getTimeZone("America/Los_Angeles");
final ExDate exDate = new ExDate();
Assuming you are doing something similar, it's possible that there are some unreleased code changes that allow this to work. You might like to try the latest snapshot build to see if it works differently:
I will try to find time to build a new iCal4j in the coming weeks that should hopefully resolve a number of outstanding issues. Thanks also for your support, it is greatly appreciated.
I was actually adding the dates to a DateList, and then doing this:
ExDate exdate = new ExDate(exceptions);
When I followed your example (even with the current build) it worked correctly.
Thanks for the quick response and the great library!
I am using the 1.0.5 version of ical4j. The problem Ben mentioned is fixed when I used:
But the problem still exist when I use date as variable of the method: (considering in the source the method's variable is java.util.date)
DateList dl = new DateList();
dl.add(new Date(df.parse("2014-06-02 09:00")));
dl.add(new Date(df.parse("2014-06-16 09:00")));
dl.add(new Date(df.parse("2014-06-30 09:00")));
ExDate exDate = new ExDate(dl);
The output is:
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.