Make SimpleDateFormatTest independent of default locale
libcore.java.text.SimpleDateFormatTest#testStandaloneWeekdayParsing was not fully independent of the device's locale. The test was explicitly setting the default in various cases and also setting the timezone on SimpleDateFormat in others. This change makes the timezone being used more explicit and adds more asserts to confirm the system default locale is picked up during SimpleDateFormat construction. Thanks to john.eckerdal@ for reporting the bug and providing a solution. Bug: 33259491 Test: Run SimpleDateFormatTest under CTS with Europe/Helsinki Change-Id: I7cf75c502b312aba881f66d583abbebc2b69fc60
Loading
Please sign in to comment