Open Olafxso opened 4 years ago
This problem is a result of the Java time library not identifying the time zone provided by Outlook - it's a non-standard time zone. Can you configure Outlook to provide a standard time zone?
There are no settings for generating the .ics file.
How is the time zone set on the computer? Can the selection be made there?
No, It comes from the online version of outlook. So I don't think computer time zone settings will have effect. It looks like windows uses a different TimeZone ID format. I found some mappings like here: https://unicode.org/cldr/charts/latest/supplemental/zone_tzid.html Also newer Java version (I use java 8) are known about this format and have got a mapping file in 'jre\lib\tzmapping'
Can you upgrade your Java version? If not, you can write a preprocessor that does a simple string substitution to replace the W. Europe Standard Time for a time zone that fits and Java 8 understands (e.g.TZID:Europe/London)
I cannot upgrade Java yet. Is there a way to 'override' the TIME_ZONE_IDENTIFIER in jfxtras.icalendarfx.parameters.VParameterElement? Or add a custom property reader or something?
Or should I create a method which read the ics file to a string and replace all the possible strings. There could by more than 100 possible zone ids. This will take some time I think.
Hi,
I want to import an .ics calendar from Microsoft Outlook
An error occurs while parsing this file :
The RFC-5545 describes the syntax TZID is invalid also. So I don't think you code is wrong, but do you know about this? Do you know a workaround?
Thanks