NIFI-225: Fixed Locale for InvokeHTTP

This commit is contained in:
Mark Payne 2015-01-07 15:09:40 -05:00
parent bcc271046e
commit 9ba8defc09
1 changed files with 2 additions and 2 deletions

View File

@ -34,6 +34,7 @@ import java.util.Collections;
import java.util.HashMap; import java.util.HashMap;
import java.util.HashSet; import java.util.HashSet;
import java.util.List; import java.util.List;
import java.util.Locale;
import java.util.Map; import java.util.Map;
import java.util.Set; import java.util.Set;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
@ -61,7 +62,6 @@ import org.apache.nifi.processor.exception.ProcessException;
import org.apache.nifi.processor.util.StandardValidators; import org.apache.nifi.processor.util.StandardValidators;
import org.apache.nifi.ssl.SSLContextService; import org.apache.nifi.ssl.SSLContextService;
import org.apache.nifi.ssl.SSLContextService.ClientAuth; import org.apache.nifi.ssl.SSLContextService.ClientAuth;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.joda.time.format.DateTimeFormat; import org.joda.time.format.DateTimeFormat;
import org.joda.time.format.DateTimeFormatter; import org.joda.time.format.DateTimeFormatter;
@ -314,7 +314,7 @@ public final class InvokeHTTP extends AbstractProcessor {
* requires it to be in GMT (preferring the literal 'GMT' string). * requires it to be in GMT (preferring the literal 'GMT' string).
*/ */
private static final String rfc1123 = "EEE, dd MMM yyyy HH:mm:ss 'GMT'"; private static final String rfc1123 = "EEE, dd MMM yyyy HH:mm:ss 'GMT'";
private static final DateTimeFormatter dateFormat = DateTimeFormat.forPattern(rfc1123).withZoneUTC(); private static final DateTimeFormatter dateFormat = DateTimeFormat.forPattern(rfc1123).withLocale(Locale.US).withZoneUTC();
/** /**
* Every request/response cycle from this client has a unique * Every request/response cycle from this client has a unique