Commit 1e27cef4 authored by Tobias Thierer's avatar Tobias Thierer
Browse files

Revert "Revert "java.time.Instant.toEpochMilli() fixes""

This reapplies commit ca2b1f0f.
The original commit was reverted. It had broken DateTest because
it changed the minimum/maximum Instant that is convertible to Date.
Those boundaries are undocumented; the old behavior was more
arbitrary and was never launched in Android. Therefore, it's
reasonable to just update the test.

This CL reapplies the original change and updates DateTest accordingly.

Test: DateTest
Test: CtsLibcoreTestCases
Bug: 31028374
Bug: 35245079

This reverts commit 18db57ad.

Change-Id: I8dd24ac6f0d0d5f58d2d0bb51404ba5c8ced2473
parent 4ddff9fd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment