commit | 2c89578709414c6a48629ef4cae694990633e8d5 | [log] [tgz] |
---|---|---|
author | Neil Fuller <nfuller@google.com> | Wed Jul 17 19:27:57 2019 +0100 |
committer | Neil Fuller <nfuller@google.com> | Wed Jul 17 19:30:08 2019 +0100 |
tree | 58f06a3f2f9903c5aa4f862b852f2417feaedc66 | |
parent | 1e64a2fd7302f4a07aebc801e35723ea6292bd51 [diff] |
Convert use of Time.format() to an alternative Convert use of Time.format() to an alternative. This avoids future Y2038 issues associated with Time. The code has been changed to use GregorianCalendar which has lenient rounding behavior when values are out of range (similar to android.text.format.Time). This is unlike LocalDateTime, which throws exceptions. There are no tests for this code. Bug: 16550209 Test: build only Change-Id: I43e016e7ed80f81887708c4a0f0123ce4baaf4b8