From 8151564f5424b480a6423a36521837d36dde7b23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Slobodan=20Markovi=C4=87?= Date: Wed, 20 Oct 2021 03:44:30 +0200 Subject: [PATCH] Corrections in Serbian locale (#1047) 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 Co-authored-by: Anish Nyayachavadi <55898433+anishnya@users.noreply.github.com> --- arrow/locales.py | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/arrow/locales.py b/arrow/locales.py index 32be55ab..68119bb1 100644 --- a/arrow/locales.py +++ b/arrow/locales.py @@ -5211,13 +5211,13 @@ class SerbianLocale(Locale): month_names = [ "", - "januar", # Јануар + "januar", # јануар "februar", # фебруар "mart", # март "april", # април "maj", # мај - "juni", # јун - "juli", # јул + "jun", # јун + "jul", # јул "avgust", # август "septembar", # септембар "oktobar", # октобар @@ -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 = [