Github user barrotsteindev commented on a diff in the pull request:

    https://github.com/apache/lucene-solr/pull/428#discussion_r207460442
  
    --- Diff: 
solr/core/src/java/org/apache/solr/update/processor/ParseDateFieldUpdateProcessorFactory.java
 ---
    @@ -144,15 +153,19 @@ public void init(NamedList args) {
         }
     
         Object defaultTimeZoneParam = args.remove(DEFAULT_TIME_ZONE_PARAM);
    -    DateTimeZone defaultTimeZone = DateTimeZone.UTC;
    +    ZoneId defaultTimeZone = ZoneOffset.UTC;
         if (null != defaultTimeZoneParam) {
    -      defaultTimeZone = 
DateTimeZone.forID(defaultTimeZoneParam.toString());
    +      TimeZone.getTimeZone(defaultTimeZoneParam.toString());
    +      defaultTimeZone = ZoneId.of(defaultTimeZoneParam.toString());
         }
     
         Collection<String> formatsParam = args.removeConfigArgs(FORMATS_PARAM);
         if (null != formatsParam) {
           for (String value : formatsParam) {
    -        formats.put(value, 
DateTimeFormat.forPattern(value).withZone(defaultTimeZone).withLocale(locale));
    +        DateTimeFormatter formatter = new 
DateTimeFormatterBuilder().parseCaseInsensitive()
    --- End diff --
    
    It seems as if joda-time is case-insensitive by default.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to