Fix MRM Date Parsing #2 (#1430)

Fix MRM Date Parsing #2
This commit is contained in:
happywillow0 2019-08-27 07:20:41 -04:00 committed by Eugene
parent 207f010eb1
commit 6423c4d8ed
2 changed files with 3 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: MyReadingManga'
pkgNameSuffix = 'all.myreadingmanga'
extClass = '.MyReadingMangaFactory'
extVersionCode = 23
extVersionCode = 24
libVersion = '1.2'
}

View File

@ -10,6 +10,7 @@ import org.jsoup.nodes.Document
import org.jsoup.nodes.Element
import java.net.URLEncoder
import java.text.SimpleDateFormat
import java.util.Locale
import java.util.concurrent.TimeUnit
open class MyReadingManga(override val lang: String) : ParsedHttpSource() {
@ -151,7 +152,7 @@ open class MyReadingManga(override val lang: String) : ParsedHttpSource() {
}
private fun parseDate(date: String): Long {
return SimpleDateFormat("MMM dd, yyyy").parse(date).time
return SimpleDateFormat("MMM dd, yyyy", Locale.US ).parse(date).time
}
private fun createChapter(pageNumber: String, mangaUrl: String, date: Long, chname: String): SChapter {