Fixed relative date parsing for 'n minutes ago' (#1303)

Fixed relative date parsing for 'n minutes ago' in Genkan
This commit is contained in:
SkiFire13 2019-07-16 20:52:31 +02:00 committed by Eugene
parent 8f0e120bf6
commit 229fd89dd4
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: Genkan (multiple sources)'
pkgNameSuffix = 'all.genkan'
extClass = '.GenkanFactory'
extVersionCode = 1
extVersionCode = 2
libVersion = '1.2'
}

View File

@ -182,7 +182,7 @@ abstract class Genkan(
"week" -> calendar.apply{add(Calendar.WEEK_OF_MONTH, -trimmedDate[0].toInt())}
"day" -> calendar.apply{add(Calendar.DAY_OF_MONTH, -trimmedDate[0].toInt())}
"hour" -> calendar.apply{add(Calendar.HOUR_OF_DAY, -trimmedDate[0].toInt())}
"minute" -> calendar.apply{add(Calendar.MONTH, -trimmedDate[0].toInt())}
"minute" -> calendar.apply{add(Calendar.MINUTE, -trimmedDate[0].toInt())}
"second" -> calendar.apply{add(Calendar.SECOND, 0)}
}