Skip to content

Commit

Permalink
Corrections in Serbian locale (#1047)
Browse files Browse the repository at this point in the history
Corrections are necessary to avoid errors in matching Serbian dates (e.g. parsing "31. jul 2021." is now impossible with both "DD. MMM YYYY." and "DD. MMMM YYYY." patterns).

Co-authored-by: Jad Chaar <jadchaar@users.noreply.github.com>
Co-authored-by: Anish Nyayachavadi <55898433+anishnya@users.noreply.github.com>
  • Loading branch information
3 people committed Oct 20, 2021
1 parent c35134b commit 8151564
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions arrow/locales.py
Original file line number Diff line number Diff line change
Expand Up @@ -5211,13 +5211,13 @@ class SerbianLocale(Locale):

month_names = [
"",
"januar", # Јануар
"januar", # јануар
"februar", # фебруар
"mart", # март
"april", # април
"maj", # мај
"juni", # јун
"juli", # јул
"jun", # јун
"jul", # јул
"avgust", # август
"septembar", # септембар
"oktobar", # октобар
Expand All @@ -5227,18 +5227,18 @@ class SerbianLocale(Locale):

month_abbreviations = [
"",
"jan.",
"febr.",
"mart",
"april",
"jan",
"feb",
"mar",
"apr",
"maj",
"juni",
"juli",
"avg.",
"sept.",
"okt.",
"nov.",
"dec.",
"jun",
"jul",
"avg",
"sep",
"okt",
"nov",
"dec",
]

day_names = [
Expand Down

0 comments on commit 8151564

Please sign in to comment.