fix locale in parser

This commit is contained in:
Shcherbatykh Oleg
2026-02-27 11:37:49 +03:00
parent 082c4f7973
commit 59c869d539

View File

@@ -9,7 +9,7 @@ import java.util.Locale
class NewsHtmlParser {
private val dateFormatter =
DateTimeFormatter.ofPattern("dd.MM.yyyy", Locale("ru"))
DateTimeFormatter.ofPattern("dd.MM.yyyy", Locale.forLanguageTag("ru"))
fun parseArchivePage(html: String): List<NewsItem> {
val itemRegex = Regex(