From 05edfd22fe52d0232585d795540dcca6242ca74e Mon Sep 17 00:00:00 2001 From: Le Cong Hau Date: Fri, 3 May 2019 00:47:00 +0700 Subject: [PATCH] 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 --- src/vi/nettruyen/build.gradle | 2 +- .../eu/kanade/tachiyomi/extension/vi/nettruyen/NetTruyen.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/vi/nettruyen/build.gradle b/src/vi/nettruyen/build.gradle index 34f9a3f19..10f829ee5 100644 --- a/src/vi/nettruyen/build.gradle +++ b/src/vi/nettruyen/build.gradle @@ -5,7 +5,7 @@ ext { appName = 'Tachiyomi: NetTruyen' pkgNameSuffix = 'vi.nettruyen' extClass = '.NetTruyen' - extVersionCode = 1 + extVersionCode = 2 libVersion = '1.2' } diff --git a/src/vi/nettruyen/src/eu/kanade/tachiyomi/extension/vi/nettruyen/NetTruyen.kt b/src/vi/nettruyen/src/eu/kanade/tachiyomi/extension/vi/nettruyen/NetTruyen.kt index 621a68aa2..7c69bd664 100644 --- a/src/vi/nettruyen/src/eu/kanade/tachiyomi/extension/vi/nettruyen/NetTruyen.kt +++ b/src/vi/nettruyen/src/eu/kanade/tachiyomi/extension/vi/nettruyen/NetTruyen.kt @@ -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 {