commit | fa9818c081c1c0158d80ddd9b1f92990b3e0eb30 | [log] [tgz] |
---|---|---|
author | Narayan Kamath <narayan@google.com> | Wed Jan 06 12:07:24 2016 +0000 |
committer | Narayan Kamath <narayan@google.com> | Wed Jan 06 14:09:24 2016 +0000 |
tree | 9ddbebf424db6273b532f63d8ec756e94657b180 | |
parent | d279dba94e5d0b2c0955c0adac4fa023e184b2a9 [diff] |
Make Date.parse() a tad more lenient. Support zone strings of the form GMT+04:30 in addition to GMT+0430 and GMT+5. This fixes a couple of our URLConnectionTests in cases where server was sending back dates in this format. As a follow-up okhttp change, we should consider overriding URLConnection#getHeaderFieldDate so that we can avoid using Date.parse altogether. bug: 26326992 Change-Id: Ia1198afb18f84874a9726e46c26d575ea9ff3f45