Skip to content

Problem in Bahasa Indonesia (ID) #398

@feryandi

Description

@feryandi

I could not parse this string: "Minggu, 18 Mar 2018 07:30"
Which is basic Indonesia and linearly translate to English as "Sunday, 18 Mar 2018 07:30"

Here's my code:

import dateparser
print(dateparser.parse(u'Minggu, 18 Mar 2018 07:30'))

Interestinglly, "Senin, 18 Mar 2018 07:30" could be parsed correctly. (English: "Monday, 18 Mar 2018 07:30")

Further investigation leads to the incorrect translation from Indonesia to English,
week in Indonesia is minggu, same as sunday is minggu, so the minggu in the date translated into week which does not make sense in English thus returning invalid date.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: Bug - LanguageSubtype of bug, related to language data

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions