We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19e0609 commit 67acbc0Copy full SHA for 67acbc0
src/test/java/com/twilio/converter/DateConverterTest.java
@@ -5,6 +5,8 @@
5
import org.junit.Assert;
6
import org.junit.Test;
7
8
+import java.util.Locale;
9
+
10
/**
11
* Test Class for {@link DateConverter}.
12
*/
@@ -67,4 +69,11 @@ public void testLocalDateToString() {
67
69
String date = DateConverter.dateStringFromLocalDate(new LocalDate(2016, 9, 21));
68
70
Assert.assertEquals("2016-09-21", date);
71
}
72
73
+ @Test
74
+ public void testDifferentLocal() {
75
+ Locale.setDefault(new Locale("fr", "CA"));
76
+ DateTime dateTime = DateConverter.rfc2822DateTimeFromString("Tue, 29 Mar 2016 13:00:05 +0000");
77
+ Assert.assertNotNull(dateTime);
78
+ }
79
0 commit comments