summaryrefslogtreecommitdiff
path: root/annotations/generate_annotated_java_files.py
diff options
context:
space:
mode:
authorNeil Fuller <nfuller@google.com>2016-12-01 18:19:35 +0000
committerNeil Fuller <nfuller@google.com>2016-12-16 18:40:45 +0000
commitd25a40d88e9a5f58c169fd08012786d431b1eb8e (patch)
tree6b6ac50abac595523078f94b39c5509a7d4398bc /annotations/generate_annotated_java_files.py
parent9f37302e67fae7450cf85e17a8f7c50c7d622929 (diff)
Make SimpleDateFormatTest independent of default timezone
libcore.java.text.SimpleDateFormatTest#testStandaloneWeekdayParsing was not fully independent of the device's timezone. 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 timezone is picked up during SimpleDateFormat construction. Thanks to john.eckerdal@ for reporting the bug and providing a solution. Cherry-pick note: Corrected original description, which talked about "locale" when it actually meant "timezone". Bug: 33259491 Test: Run SimpleDateFormatTest under CTS with Europe/Helsinki Change-Id: I7cf75c502b312aba881f66d583abbebc2b69fc60 (cherry picked from commit a67c4e93a8590c0defa01830e218c3af8b960778)
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions