fix locale in parser
This commit is contained in:
@@ -9,7 +9,7 @@ import java.util.Locale
|
|||||||
class NewsHtmlParser {
|
class NewsHtmlParser {
|
||||||
|
|
||||||
private val dateFormatter =
|
private val dateFormatter =
|
||||||
DateTimeFormatter.ofPattern("dd.MM.yyyy", Locale("ru"))
|
DateTimeFormatter.ofPattern("dd.MM.yyyy", Locale.forLanguageTag("ru"))
|
||||||
|
|
||||||
fun parseArchivePage(html: String): List<NewsItem> {
|
fun parseArchivePage(html: String): List<NewsItem> {
|
||||||
val itemRegex = Regex(
|
val itemRegex = Regex(
|
||||||
|
|||||||
Reference in New Issue
Block a user