summaryrefslogtreecommitdiff
path: root/annotations/generate_annotated_java_files.py
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2012-07-30 14:50:14 -0700
committerElliott Hughes <enh@google.com>2012-07-30 14:50:14 -0700
commit78c3de051d68b703af480778c100ca335690b250 (patch)
tree3b2da36124cd15d307ee66e27dacf292a8d8a28c /annotations/generate_annotated_java_files.py
parent0b8dc2e15ca1a6d6c0b541476ae270a9a9d4e7ba (diff)
Fix TimeZone's handling of Australia/Lord_Howe.
Australia/Lord_Howe has a half hour difference between standard and daylight time, rather than the usual hour. Our ZoneInfo implementation ignored this. Fix that oversight, make SimpleDateFormat actually use this information, and prevent TimeZone.getTimeZone("GMT") and TimeZone.getTimeZone("UTC") from being quite as expensive as they accidentally were. Longer term I think we should probably remove all uses of getDSTSavings from libcore in favor of TimeZone.getOffset, but this is probably a useful step forwards anyway. It fixes Australia/Lord_Howe in the meantime and it means that anyone else who's using getDSTSavings won't be bitten (even if they too really ought to be using TimeZone.getOffset). Bug: 4723412 Bug: http://code.google.com/p/android/issues/detail?id=24684 Change-Id: I5d50afecbe1453157e9c8f0b88305a258a3ba2e0
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions