Skip to content

Commit aae4943

Browse files
Dianne HackbornAndroid Git Automerger
authored andcommitted
am 4763989: am 32d1fec: Merge "Fixes relative time formatting issue for dates in future"
* commit '4763989d95342c25e9b857dc9ee21eb5ebac31d6': Fixes relative time formatting issue for dates in future
2 parents 3221b33 + 4763989 commit aae4943

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/java/android/text/format/DateUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1618,7 +1618,7 @@ public static CharSequence getRelativeTimeSpanString(Context c, long millis,
16181618

16191619
String result;
16201620
long now = System.currentTimeMillis();
1621-
long span = now - millis;
1621+
long span = Math.abs(now - millis);
16221622

16231623
synchronized (DateUtils.class) {
16241624
if (sNowTime == null) {

0 commit comments

Comments
 (0)