Skip to content

Commit 7ee7cb5

Browse files
author
Tom Connors
committed
ISO8601 local test
1 parent 67acbc0 commit 7ee7cb5

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/test/java/com/twilio/converter/DateConverterTest.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,16 @@ public void testLocalDateToString() {
7171
}
7272

7373
@Test
74-
public void testDifferentLocal() {
74+
public void testDifferentLocaleRFC2822() {
7575
Locale.setDefault(new Locale("fr", "CA"));
7676
DateTime dateTime = DateConverter.rfc2822DateTimeFromString("Tue, 29 Mar 2016 13:00:05 +0000");
7777
Assert.assertNotNull(dateTime);
7878
}
79+
80+
@Test
81+
public void testDifferentLocaleISO8601() {
82+
Locale.setDefault(new Locale("fr", "CA"));
83+
DateTime dateTime = DateConverter.iso8601DateTimeFromString("2016-01-15T21:49:24Z");
84+
Assert.assertNotNull(dateTime);
85+
}
7986
}

0 commit comments

Comments
 (0)