Skip to content

Commit

Permalink
Disable timezone definition updates by default
Browse files Browse the repository at this point in the history
  • Loading branch information
benfortuna committed Apr 26, 2019
1 parent ee48899 commit 0187435
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/net/fortuna/ical4j/model/TimeZoneLoader.java
Expand Up @@ -104,8 +104,8 @@ public VTimeZone loadVTimeZone(String id) throws IOException, ParserException, P
final CalendarBuilder builder = new CalendarBuilder();
final Calendar calendar = builder.build(in);
final VTimeZone vTimeZone = (VTimeZone) calendar.getComponent(Component.VTIMEZONE);
// load any available updates for the timezone.. can be explicility disabled via configuration
if (!"false".equals(Configurator.getProperty(UPDATE_ENABLED).orElse("true"))) {
// load any available updates for the timezone.. can be explicility enabled via configuration
if ("true".equals(Configurator.getProperty(UPDATE_ENABLED).orElse("false"))) {
return updateDefinition(vTimeZone);
}
if (vTimeZone != null) {
Expand Down

0 comments on commit 0187435

Please sign in to comment.