Skip to content

Commit

Permalink
fix tuple int comparison error in version check
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesfrye committed Jun 5, 2023
1 parent 3c24a66 commit 3f17811
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mkdocs_blogging_plugin/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,12 @@ def get_localized_date(timestamp: float, day_only: bool, format: str=None, _loca
return datetime.strftime(time, format)
else:
if not _locale:
if sys.version_info[0] < (3, 11):
if sys.version_info[:2] < (3, 11):
_locale = locale.getdefaultlocale()[0]
else:
_locale = locale.getlocale()[0]

if day_only:
return format_date(time.date(), format="short", locale=_locale)
else:
return format_datetime(time, format="short", locale=_locale)
return format_datetime(time, format="short", locale=_locale)

0 comments on commit 3f17811

Please sign in to comment.