Fixed arrow formatter when dealing with profile birthdates

This commit is contained in:
Manuel Cortez 2018-10-14 08:13:12 -05:00
parent b00668e758
commit 6bf29a45db

View File

@ -41,7 +41,7 @@ class userProfile(object):
if person.has_key("bdate") and person["bdate"] != "": if person.has_key("bdate") and person["bdate"] != "":
self.dialog.main_info.enable("bdate") self.dialog.main_info.enable("bdate")
if len(person["bdate"]) <= 5: if len(person["bdate"]) <= 5:
d = arrow.get(person["bdate"], "D.m") d = arrow.get(person["bdate"], "D.M")
self.dialog.main_info.set("bdate", d.format(_(u"MMMM D"), locale=languageHandler.getLanguage())) self.dialog.main_info.set("bdate", d.format(_(u"MMMM D"), locale=languageHandler.getLanguage()))
else: else:
d = arrow.get(person["bdate"], "D.M.YYYY") d = arrow.get(person["bdate"], "D.M.YYYY")