Fix wrong month of update time (#1074)

* Add new extension for nettruyen.com

* Remove unnecessary files

* Remove unnecessary code and edit Search Filter

* Remove unnecessary code and edit Search Filter

* NetTruyen change icon

* Fix wrong month of update time
This commit is contained in:
Le Cong Hau 2019-05-03 00:47:00 +07:00 committed by Eugene
parent 64aae53777
commit 05edfd22fe
2 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: NetTruyen'
pkgNameSuffix = 'vi.nettruyen'
extClass = '.NetTruyen'
extVersionCode = 1
extVersionCode = 2
libVersion = '1.2'
}

View File

@ -116,12 +116,12 @@ class NetTruyen : ParsedHttpSource() {
return if (date.contains(":")) {
// Format eg 17:02 20/04
val dateDM = date.split(" ")[1].split("/")
dates.set(dates.get(Calendar.YEAR), dateDM[1].toInt(), dateDM[0].toInt())
dates.set(dates.get(Calendar.YEAR), dateDM[1].toInt() - 1, dateDM[0].toInt())
dates.timeInMillis
} else {
// Format eg 18/11/17
val dateDMY = date.split("/")
dates.set(2000 + dateDMY[2].toInt(), dateDMY[1].toInt(), dateDMY[0].toInt())
dates.set(2000 + dateDMY[2].toInt(), dateDMY[1].toInt() - 1, dateDMY[0].toInt())
dates.timeInMillis
}
} else {