1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-06-25 14:43:20 +00:00

update to PrettyTime 4.0.6

fixes #4324
This commit is contained in:
bopol 2020-10-03 18:58:42 +02:00
parent 83ea91586b
commit 2b1469e02e
2 changed files with 2 additions and 4 deletions

View File

@ -209,7 +209,7 @@ dependencies {
implementation "io.reactivex.rxjava2:rxandroid:2.1.1"
implementation "com.jakewharton.rxbinding2:rxbinding:2.2.0"
implementation "org.ocpsoft.prettytime:prettytime:4.0.5.Final"
implementation "org.ocpsoft.prettytime:prettytime:4.0.6.Final"
}
static String getGitWorkingBranch() {

View File

@ -305,9 +305,7 @@ public final class Localization {
}
public static String relativeTime(final Calendar calendarTime) {
final String time = getPrettyTime().formatUnrounded(calendarTime);
return time.startsWith("-") ? time.substring(1) : time;
//workaround fix for russian showing -1 day ago, -19hrs ago
return getPrettyTime().formatUnrounded(calendarTime);
}
private static void changeAppLanguage(final Locale loc, final Resources res) {