diff options
author | Neil Fuller <nfuller@google.com> | 2019-06-17 11:40:35 +0100 |
---|---|---|
committer | Allen Su <allenwtsu@google.com> | 2019-12-16 09:30:36 +0000 |
commit | ee2d1af5d9034a9f0b7e2ad5406e7a4f8530b801 (patch) | |
tree | 9eacc36fa93bdc9dfbf3510b797a5298c62f7c9a /rs/java/android/renderscript/Program.java | |
parent | 706ac54f75bec3a0b8718425708f08b9165dbe5f (diff) |
Convert some users of Time.format() to an alt.
Convert some frameworks/base/ users of android.text.format.Time.format()
to use calculations based on java.time instead. This avoids future
Y2038 issues associated with Time. A TimeMigrationUtils method is
added that has similar localization behavior to Time's format() method.
This commit only contains a replacement for basic formatting usecases.
Later commits can handle more complex usecases.
The only case that modifies the format is the changes to
CalendarContract.java: the pattern used there was unusual and only
used in logging/debug logic which was switched off by default.
Bug: 16550209
Test: build / boot / treehugger
Test: atest FrameworksCoreTests:android.text.format.TimeMigrationUtilsTest
Change-Id: Ib142979858012bb766b4c107d41a21b0324de506
Merged-In: Ib142979858012bb766b4c107d41a21b0324de506
Diffstat (limited to 'rs/java/android/renderscript/Program.java')
0 files changed, 0 insertions, 0 deletions