Closed mangstadt closed 8 years ago
Diff:
--- old
+++ new
@@ -34,3 +34,23 @@
If the local computer's timezone is "Europe/Paris", then it will appear as if the `DTSTART` property in the example above is set to "20130331T030000". However, its true value is "20130331T020000".
Discussion: https://sourceforge.net/p/biweekly/discussion/help-and-support/thread/cb55fc2a/
+
+**Workaround:**
+
+Use the attached marshaller and property classes to get the raw string value of all DTSTART properties:
+
+~~~~~~
+:::java
+String str =
+"BEGIN:VCALENDAR\r\n" +
+"BEGIN:VTIMEZONE\r\n" +
+"BEGIN:DAYLIGHT\r\n" +
+"DTSTART:20130331T020000\r\n" +
+"END:DAYLIGHT\r\n" +
+"END:VTIMEZONE\r\n" +
+"END:VCALENDAR\r\n";
+
+ICalendar ical = Biweekly.parse(str).register(new DateStartRawMarshaller()).first();
+DateStartRaw prop = ical.getTimezones().get(0).getDaylightSavingsTime().get(0).getProperty(DateStartRaw.class);
+System.out.println(prop.getValueRaw());
+~~~~~~
Original comment by: mangstadt
Original comment by: mangstadt
Fixed in r202.
Original comment by: mangstadt
It appears that some data loss can occur when parsing daylight savings start times. For example: