Merge pull request #12670 from ulisseslima/java-14460
Java 14460 - GitHub Issue: SimpleDateFormat : "Vendredi" is Friday in french, not Wednesday
This commit is contained in:
commit
4e25a1fdef
|
@ -41,8 +41,8 @@ public class SimpleDateFormatUnitTest {
|
||||||
@Test
|
@Test
|
||||||
public void givenFranceLocale_whenFormatted_thenCheckFormatCorrect() throws Exception{
|
public void givenFranceLocale_whenFormatted_thenCheckFormatCorrect() throws Exception{
|
||||||
SimpleDateFormat franceDateFormatter = new SimpleDateFormat("EEEEE dd-MMMMMMM-yyyy", Locale.FRANCE);
|
SimpleDateFormat franceDateFormatter = new SimpleDateFormat("EEEEE dd-MMMMMMM-yyyy", Locale.FRANCE);
|
||||||
Date myWednesday = new Date(1539341312904L);
|
Date myFriday = new Date(1539341312904L);
|
||||||
assertTrue(franceDateFormatter.format(myWednesday).startsWith("vendredi"));
|
assertTrue(franceDateFormatter.format(myFriday).startsWith("vendredi"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
Loading…
Reference in New Issue