Skip to content

Commit e1289bc

Browse files
author
Jarrad Lee
committed
Fixed date localization issue for rfc2616 http date header, it will now be fixed to Locale.US.
1 parent 6506231 commit e1289bc

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

RELEASE.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## [2.1.1](http://central.maven.org/maven2/com/telesign/telesign/2.1.1/) - 2017-05-16
2+
- 2017-05-16
3+
- dateRfc2616 is now fixed to Locale.US to avoid unnecessary localization issues
4+
15
## [2.1.0](http://central.maven.org/maven2/com/telesign/telesign/2.1.0/) - 2017-04-26
26
- 2016-04-26
37
- updated and improved README
@@ -9,7 +13,7 @@
913
## [2.0.0](http://central.maven.org/maven2/com/telesign/telesign/2.0.0/) - 2017-04-10
1014
- 2016-04-10
1115
- Major refactor and simplification into generic REST client.
12-
- API parameters are now passed as parans to endpoint handlers.
16+
- API parameters are now passed as params to endpoint handlers.
1317
- Now using OkHttp as a web client internally which avoids a lot of redundant code.
1418
- UserAgent is now set to track client usage and help debug issues.
1519
- generateTelesignHeaders is a static and easily extracted from the SDK if
@@ -156,7 +160,7 @@ Removed special characters as it was giving errors while running Junit test
156160
- Merge pull request #15 from Manmohan-TechM/July_2015
157161
Adding pom.xml used while migrating to Maven central
158162
- 2015-08-13
159-
- Merge pull request #14 from daplay/master
163+
- Merge pull request #14 from deploy/master
160164
use Locale.US for date header
161165
- 2015-08-03
162166
- Added Originating_ip & Session_id to PhoneId & Verify calls. Changes done as part of PD-14562.

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ plugins {
33
}
44

55
group 'com.telesign'
6-
version '2.1.0'
6+
version '2.1.1'
77

88
apply plugin: 'idea'
99
apply plugin: 'java'

src/main/java/com/telesign/RestClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ public static Map<String, String> generateTelesignHeaders(String customerId,
179179
String userAgent) throws NoSuchAlgorithmException, InvalidKeyException {
180180

181181
if (dateRfc2616 == null) {
182-
SimpleDateFormat rfc2616 = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss 'GMT'");
182+
SimpleDateFormat rfc2616 = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss 'GMT'", Locale.US);
183183
rfc2616.setTimeZone(TimeZone.getTimeZone("GMT"));
184184
dateRfc2616 = rfc2616.format(new Date());
185185
}

0 commit comments

Comments
 (0)